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 | dd17394d225b06376e9ae1d23f36cec463fdef01 (patch) | |
tree | 74b58a2050de3227398190820e2c978ee558fbc0 /lib/Frontend/CompilerInvocation.cpp | |
parent | 6be3cb835ad85bfae46dc591503f15a0502472ab (diff) |
implement altivec.h and a bunch of support code, patch by Anton Yartsev!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index d40f0bfd76..990371b214 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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 = |