forked from OSchip/llvm-project
Add some more required SPARC v9 predefined macros.
Solaris/AuroraUX only need __arch64__, the BSDs need the other variants. llvm-svn: 180172
This commit is contained in:
parent
4e9fc023c6
commit
f759989bcd
|
@ -4256,6 +4256,15 @@ public:
|
|||
MacroBuilder &Builder) const {
|
||||
SparcTargetInfo::getTargetDefines(Opts, Builder);
|
||||
Builder.defineMacro("__sparcv9");
|
||||
Builder.defineMacro("__arch64__");
|
||||
// Solaris and its derivative AuroraUX don't need these variants, but the
|
||||
// BSDs do.
|
||||
if (getTriple().getOS() != llvm::Triple::Solaris &&
|
||||
getTriple().getOS() != llvm::Triple::AuroraUX) {
|
||||
Builder.defineMacro("__sparc64__");
|
||||
Builder.defineMacro("__sparc_v9__");
|
||||
Builder.defineMacro("__sparcv9__");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue