Skip to content

Commit 41727dd

Browse files
committed
Move predefine changes out of this PR.
1 parent 9b55509 commit 41727dd

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

clang/lib/Basic/Targets/OSTargets.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ static void addVisualCDefines(const LangOptions &Opts, MacroBuilder &Builder) {
260260
void addWindowsDefines(const llvm::Triple &Triple, const LangOptions &Opts,
261261
MacroBuilder &Builder) {
262262
Builder.defineMacro("_WIN32");
263-
Builder.defineMacro("__PECOFF__");
264263
if (Triple.isArch64Bit())
265264
Builder.defineMacro("_WIN64");
266265
if (Triple.isWindowsGNUEnvironment())

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,7 @@ template <typename Target>
783783
class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo<Target> {
784784
protected:
785785
void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
786-
MacroBuilder &Builder) const override {
787-
Builder.defineMacro("__PECOFF__");
788-
Builder.defineMacro("__UEFI__");
789-
// Builder.defineMacro("_WIN32");
790-
}
786+
MacroBuilder &Builder) const override {}
791787

792788
public:
793789
UEFITargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)

0 commit comments

Comments
 (0)