[cfe-commits] r144189 - /cfe/trunk/lib/Basic/Targets.cpp
Douglas Gregor
dgregor at apple.com
Wed Nov 9 07:17:16 PST 2011
Author: dgregor
Date: Wed Nov 9 09:17:16 2011
New Revision: 144189
URL: http://llvm.org/viewvc/llvm-project?rev=144189&view=rev
Log:
Define some built-ins macros on mips32 platform, from Simon Atanasyan!
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=144189&r1=144188&r2=144189&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Nov 9 09:17:16 2011
@@ -3108,6 +3108,10 @@
}
virtual void getArchDefines(const LangOptions &Opts,
MacroBuilder &Builder) const {
+ Builder.defineMacro("_MIPS_SZPTR", Twine(getPointerWidth(0)));
+ Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth()));
+ Builder.defineMacro("_MIPS_SZLONG", Twine(getLongWidth()));
+
if (ABI == "o32") {
Builder.defineMacro("__mips_o32");
Builder.defineMacro("_ABIO32", "1");
More information about the cfe-commits
mailing list