summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-14 03:54:58 +0000
committerChris Lattner <sabre@nondot.org>2010-04-14 03:54:58 +0000
commitdad4062b4dd78a3c1fb6b6da08bcda4a77b4ff48 (patch)
tree98a172832550675032a8c0363dc69c6649abb267 /clang/lib/Frontend/CompilerInvocation.cpp
parent8408f33deb381718be451ae12d84ca16ebd9b1c6 (diff)
downloadbcm5719-llvm-dad4062b4dd78a3c1fb6b6da08bcda4a77b4ff48.tar.gz
bcm5719-llvm-dad4062b4dd78a3c1fb6b6da08bcda4a77b4ff48.zip
implement altivec.h and a bunch of support code, patch by Anton Yartsev!
llvm-svn: 101215
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index d40f0bfd76a..990371b2149 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1278,6 +1278,10 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args,
Opts.Includes.push_back(it->getValue(Args));
}
+ // Include 'altivec.h' if -faltivec option present
+ if (Args.hasArg(OPT_faltivec))
+ Opts.Includes.push_back("altivec.h");
+
for (arg_iterator it = Args.filtered_begin(OPT_remap_file),
ie = Args.filtered_end(); it != ie; ++it) {
std::pair<llvm::StringRef,llvm::StringRef> Split =
OpenPOWER on IntegriCloud