diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-14 03:54:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-14 03:54:58 +0000 |
commit | dad4062b4dd78a3c1fb6b6da08bcda4a77b4ff48 (patch) | |
tree | 98a172832550675032a8c0363dc69c6649abb267 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8408f33deb381718be451ae12d84ca16ebd9b1c6 (diff) | |
download | bcm5719-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.cpp | 4 |
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 = |