summaryrefslogtreecommitdiffstats
path: root/clang/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-02-11 22:29:58 +0000
committerSteve Naroff <snaroff@apple.com>2008-02-11 22:29:58 +0000
commit5915777fcade7975f8a9717b433e4788901893b1 (patch)
treef0f877704786ef3c2fe4b2267c2fd76284c62b07 /clang/Lex/Preprocessor.cpp
parent5a858df0b399a9ee679c7646c975f39f3432ec3f (diff)
downloadbcm5719-llvm-5915777fcade7975f8a9717b433e4788901893b1.tar.gz
bcm5719-llvm-5915777fcade7975f8a9717b433e4788901893b1.zip
Move Microsoft __declspec hack from the parser to the preprocessor. Since we have no plans to actually implement this construct, it is cleaner to limit the change to the preprocessor.
llvm-svn: 46973
Diffstat (limited to 'clang/Lex/Preprocessor.cpp')
-rw-r--r--clang/Lex/Preprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp
index 85a2c47c6ca..a291fe35dfb 100644
--- a/clang/Lex/Preprocessor.cpp
+++ b/clang/Lex/Preprocessor.cpp
@@ -435,6 +435,7 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, "__int16=short");
DefineBuiltinMacro(Buf, "__int32=int");
DefineBuiltinMacro(Buf, "__int64=long long");
+ DefineBuiltinMacro(Buf, "__declspec(X)=");
}
// FIXME: Should emit a #line directive here.
}
OpenPOWER on IntegriCloud