Daniel Dunbar
43a9b3263c
Driver: Ignore -fobjc-gc and -fobjc-gc-only for platforms which don't support them.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100930 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-10 16:20:23 +00:00
John McCall
32579cf507
Turn access control on by default in the driver.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100882 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-09 19:12:06 +00:00
John McCall
7002f4c03c
Turn access control on by default in -cc1.
...
Remove -faccess-control from -cc1; add -fno-access-control.
Make the driver pass -fno-access-control by default.
Update a bunch of tests to be correct under access control.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100880 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-09 19:03:51 +00:00
Benjamin Kramer
71c972acd4
Remove caseless switch.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100770 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-08 15:44:22 +00:00
Chris Lattner
0f0c963f9b
add a new driver-level -ferror-limit=412 option, which causes clang to stop
...
emitting diagnostics after it has produced that many errors. Give this a
default value of 20 which produces plenty of errors for people to fix before
recompiling but not so many that their entire console scrolls away when the
compiler gets confused. The experience looks like this:
$ clang foo.c
<tons of crap>
foo.c:102:3: error: unknown type name 'somethingbad'
somethingbad x;
^
fatal error: too many errors emitted, stopping now
36 warnings and 20 errors generated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100689 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-07 20:49:23 +00:00
Chris Lattner
3edbeb78fe
add support for -MQ flag to quote targets in dependency file,
...
PR6661, patch by Ori Avtalion!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99821 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-29 17:55:58 +00:00
Douglas Gregor
4c2bcad7b8
Implement support for -nostdc++. Fixes PR6446.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99417 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-24 20:13:48 +00:00
Ted Kremenek
0647a7b9ad
Disable the emission of frontend warnings (not errors) under --analyze.
...
Fixes <rdar://problem/7405601>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99222 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-22 22:32:05 +00:00
Daniel Dunbar
0a80ba74ff
Driver: Fix a number of -fapple-kext issues:
...
- Disable RTTI.
- Disable use of __cxa_atexit.
- Disable unwind tables.
- Enable freestanding mode.
Also, honor -fhosted correctly.
<rdar://problem/7515383> C++ support: -fapple-kext not honored
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99041 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-20 04:52:14 +00:00
Daniel Dunbar
efb0fa9e11
C++: Add support for -fno-use-cxa-atexit.
...
- So much typing, so little gain...
Also, rename the __cxx_global_initialization function just to match llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99039 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-20 04:15:41 +00:00
Daniel Dunbar
03d87ee556
Driver: Fix possible crash when targetting an unknown (unsupported) Darwin
...
platform, e.g. ppc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99016 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-20 00:50:21 +00:00
John McCall
3ddd6e026a
Make -faccess-control and -fno-access-control driver options.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98703 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-17 01:32:13 +00:00
Daniel Dunbar
8c6fa84b2e
Driver: Fix forwarding of -fno-lax-vector-conversions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98639 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-16 16:57:46 +00:00
Rafael Espindola
18f36d9eac
Don't produce debug info when given -g. Fixes PR6529.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97897 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-07 04:46:18 +00:00
Eric Christopher
ed734737d5
Add in some more MIPS command line options.
...
Patch by Oleksandr Tymoshenko!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97544 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-02 02:41:08 +00:00
Blaine Garst
2a7eb28397
Unconditionally support block introspection data in a new field at the end
...
of the block descriptor field. This field is the ObjC style @encode
signature of the implementation function, and was to this point
conditionally provided in the block literal data structure. That
provisional support is removed.
Additionally, eliminate unused enumerations for the block literal flags field.
The first shipping ABI unconditionally set (1<<29) but this bit is unused
by the runtime, so the second ABI will unconditionally have (1<<30) set so
that the runtime can in fact distinguish whether the additional data is
present or not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96989 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-23 21:51:17 +00:00
John McCall
d0c2ec44e0
Enable -mconstructor-aliases by default on non-darwin platforms.
...
The linker bug holding this back is Darwin-specific.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96655 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-19 02:45:38 +00:00
Daniel Dunbar
2002263e10
Driver: Tweak freebsd::Link, by Roman Divacky.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96469 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-17 08:07:51 +00:00
John McCall
b689afb750
Raise the responsibility for passing -disable-llvm-verifier in NDEBUG builds
...
to the driver, and support it in CodeGenOptsToArgs(). Note that this changes
the default behavior of clang -cc1 to always run the verifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96077 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-13 03:50:24 +00:00
Daniel Dunbar
ae24a88655
Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95876 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-11 17:33:45 +00:00
Daniel Dunbar
64952508c2
Driver: Add -rewrite-objc, which is an interface to clang -cc1 -rewrite-objc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95849 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-11 03:16:21 +00:00
Daniel Dunbar
b2987d159a
Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes
...
calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling,
for Darwin ARM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95787 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-10 18:49:11 +00:00
Anders Carlsson
a508b7de6c
Add support for threadsafe statics, and make them the default (matching gcc).
...
Daniel, I'd appreciate a review of the driver/cc1 parts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95508 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-06 23:23:06 +00:00
Ted Kremenek
565e465c6d
Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95348 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 02:06:54 +00:00
Ted Kremenek
7909fc8833
Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95347 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:59:21 +00:00
Ted Kremenek
fa15be4cf9
Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95346 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:57:44 +00:00
Ted Kremenek
2ade536f68
Rename -cc1 option '-warn-objc-unused-ivars' to '-analyzer-check-objc-unused-ivars'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95345 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:55:01 +00:00
Ted Kremenek
cd9902bfb7
Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95343 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:52:40 +00:00
Ted Kremenek
fb3f893bc5
Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95342 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-05 01:50:36 +00:00
Daniel Dunbar
8767cbc475
Driver: Add -[no-]integrated-as for clang.
...
- Requires backend support, which only exists for i386--darwin currently.
No 'as' required:
--
ddunbar@ozzy:tmp$ cat t.c
int main() { return 42; }
ddunbar@ozzy:tmp$ clang -m32 -integrated-as t.c
ddunbar@ozzy:tmp$ ./a.out; echo $?
42
ddunbar@ozzy:tmp$
--
The random extra whitespace is how you know its working! :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95194 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-03 03:07:56 +00:00
Daniel Dunbar
609508ce95
Driver/Darwin: Darwin uses -fobjc-legacy-dispatch on ARM.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95006 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-01 21:07:43 +00:00
Daniel Dunbar
984eb8611d
Driver/Frontend: Add support for -fobjc-legacy-dispatch, not yet used.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95004 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-01 21:07:25 +00:00
Daniel Dunbar
74f20838ca
Simplify.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94929 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-30 23:31:57 +00:00
Benjamin Kramer
f22d1fd96d
Use StringRef instead of returning a temporary std::string.
...
This fixes a really nasty bug in Darwin::getDarwinArchName where we were going
StringRef -> temporary std::string -> StringRef (and return the dead StringRef).
The StringRefs from Triple live as long as the Triple itself, that should be
long enough.
Hopefully 2 of 4 MSVC buildbot failures are gone now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94892 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-30 15:01:47 +00:00
Daniel Dunbar
4a5290e773
Driver: Don't honor -std-default for C++, this makes it hard to run the gdb test
...
suite with clang++ enabled.
The right fix here is PR6175, although we would still have to find a different
work around for the gdb test suite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94838 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-29 21:03:02 +00:00
Douglas Gregor
d93256e556
Introduce serialization and deserialization of diagnostic information
...
so that CIndex can report diagnostics through the normal mechanisms
even when executing Clang in a separate process. This applies both
when performing code completion and when using ASTs as an intermediary
for clang_createTranslationUnitFromSourceFile().
The serialized format is not perfect at the moment, because it does
not encapsulate macro-instantiation information. Instead, it maps all
source locations back to the instantiation location. However, it does
maintain source-range and fix-it information. To get perfect fidelity
from the serialized format would require serializing a large chunk of
the source manager; at present, it isn't clear if this code will live
long enough for that to matter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94740 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-28 06:00:51 +00:00
Daniel Dunbar
ce3fdf2333
Driver/Darwin: Simplify target version checks.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94641 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-27 00:57:03 +00:00
Daniel Dunbar
cacb0f0070
Driver/Darwin: Fix a few link arguments when targetting different iPhoneOS
...
versions to match gcc (which is matching linker changes).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94640 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-27 00:56:56 +00:00
Daniel Dunbar
408fceda7a
Driver/Darwin: Switch clang -triple synthesis to use computed target information.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94639 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-27 00:56:49 +00:00
Daniel Dunbar
251ca6c9fb
Driver/Darwin: Switch to using isTargetIPhoneOS where appropriate.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94637 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-27 00:56:37 +00:00
Daniel Dunbar
314cba0272
Simplify.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94503 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-26 03:56:40 +00:00
Daniel Dunbar
21ae3196c9
Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94487 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-26 01:44:04 +00:00
Daniel Dunbar
82b51cce8c
Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bc
...
file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94463 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-25 22:35:08 +00:00
Daniel Dunbar
8917dd4457
Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,
...
not always added.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94149 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-22 03:37:33 +00:00
Daniel Dunbar
eeff406730
Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" arch
...
name being used in an driver invocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94139 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-22 02:04:58 +00:00
Daniel Dunbar
a6d38494d1
Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going to
...
diverge from gcc anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94138 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-22 02:04:52 +00:00
Daniel Dunbar
225c41706d
Driver: Lift clang resource directory computation to the Driver object.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93971 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-20 02:35:16 +00:00
Daniel Dunbar
52d8f5bd9a
Darwin/ld: Don't pass '-weak_reference_mismatches non-weak' when
...
-weak_reference_mismatches is not present, it is the default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93086 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-10 00:46:00 +00:00
Chris Lattner
124fca533d
implement -ftabstop=width, patch by Christian Adåker
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93078 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-09 21:54:33 +00:00
Dan Gohman
c31176d5eb
Use -fno-math-errno by default, and remove the IsMathErrnoDefault
...
targethook, which is no longer being used. This fixes PR5971.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92987 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-08 02:20:44 +00:00
Daniel Dunbar
1bda434673
Driver: Drop ToolChain::getHost()
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91960 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-23 00:46:38 +00:00
Daniel Dunbar
a91320b8af
ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly".
...
- Correctly is in quotes, because we are following what I interpreted as GCC's
intent (which diverges from practice, naturally).
- Also, fix the arch define for arm1136jf-s.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91855 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-21 23:28:17 +00:00
Daniel Dunbar
ee788e70fc
Add ToolChain::getDriver() and use it instead of going through the HostInfo
...
object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91830 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-21 18:54:17 +00:00
Daniel Dunbar
97f52ac453
ARM: Use front-end specific target features "soft-float" and "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91755 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-19 04:15:38 +00:00
Daniel Dunbar
38b48afd33
clang -cc1: Rename -mcpu to -target-cpu to match other target options and not alias driver/backend option.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91671 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 06:30:12 +00:00
Daniel Dunbar
f2d8b9f967
Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used
...
to compile a translation unit into the debug info for that file.
- Used by parts of Darwin build process to check compiler flags, etc.
- <rdar://problem/7256886> clang does not emit AT_APPLE_flags
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91661 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 02:43:17 +00:00
Daniel Dunbar
8663b18008
Fix -fdollars-in-identifiers Clang translation.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91562 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-16 20:10:18 +00:00
Nuno Lopes
fc2844846e
implement PR5654: add -fassume-sane-operator-new, which is enabled by default, and adds the malloc attribute to the global function new() and to the overloaded new operators.
...
feel free to chage the name to this lengthy argument
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91543 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-16 16:59:22 +00:00
Daniel Dunbar
5f12232ef3
Driver: Pass -resource-dir to clang -cc1, since the driver presumably already found itself.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91384 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-15 01:02:52 +00:00
Mike Stump
9c276ae0f2
Implement runtime checks for undefined behavior. WIP.
...
This implements a new flag -fcatch-undefined-behavior. The flag turns
on additional runtime checks for:
T a[I];
a[i] abort when i < 0 or i >= I.
Future stuff includes shifts by >= bitwidth amounts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91198 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-12 01:27:46 +00:00
Ted Kremenek
6feaf57b46
Make using '-fshort-enums' an error until it is actually implemented (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91191 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-12 00:38:18 +00:00
Daniel Dunbar
8ff5b28d6e
Driver: Switch to using "clang" "-cc1" instead of "clang-cc".
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91174 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 23:00:49 +00:00
Daniel Dunbar
87667aafe6
Unbreak clang-cc handling of -msoft-float / -mfloat-abi=, which I borked.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90873 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-08 19:49:51 +00:00
Ted Kremenek
b40d06dec2
Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90812 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-07 22:26:14 +00:00
Rafael Espindola
7ca7987669
Shorten the help test for -no-canonical-prefixes, put it behind HelpHidden and
...
claim it in Driver.cpp instead of Tools.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90777 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-07 18:28:29 +00:00
Rafael Espindola
0f4c59c3be
Add gcc's -no-canonical-prefixes option to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90577 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-04 19:31:58 +00:00
Daniel Dunbar
ba8d86172c
Fix Clang tool translation to forward -fvisibility as separate arguments, the
...
old syntax isn't supported.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90469 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-03 18:42:11 +00:00
Daniel Dunbar
daab7b1016
Driver: Add Command::Creator member variable, which tracks the tool that was
...
used to create a particular command.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90287 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-02 03:23:25 +00:00
Daniel Dunbar
3b315264d1
Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too many) places to use this instead of using the backend -soft-float and -float-abi= options.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90127 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-30 08:42:00 +00:00
Daniel Dunbar
a28690e5b0
Always pass -fmessage-length using separate arguments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90121 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-30 08:40:54 +00:00
Daniel Dunbar
f219e7c152
Move LLVM backend options to explicit clang-cc / clang -cc1 options, which we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90063 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-29 07:18:39 +00:00
Daniel Dunbar
7674352cf3
clang-cc: Change -fsigned-char=0 to -fno-unsigned-char and pass -pic-level using separate args.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90054 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-29 02:39:08 +00:00
Daniel Dunbar
cdd9686b89
What the FIXMEs want, the FIXMEs shall have.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89861 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-25 11:53:23 +00:00
Daniel Dunbar
6d2eb4d07d
Don't pass -fexceptions=0 (it is the default).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89853 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-25 10:14:30 +00:00
Daniel Dunbar
e6c9ae1478
Fix refacto, gcc's cc1 needs to see --output-pch=, which is not just an alias
...
for -output-pch=.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89534 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-21 02:31:29 +00:00
Daniel Dunbar
a31100e62f
Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89498 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-20 22:21:52 +00:00
Daniel Dunbar
66861e09d5
Standardize Driver translation to call clang-cc using '-foo' form instead of '--foo'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89497 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-20 22:21:36 +00:00
Daniel Dunbar
53e8484581
Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... variants instead of using llvm: 🆑 :init(true) arguments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89315 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-19 04:55:23 +00:00
Daniel Dunbar
265e9ef9f3
Driver: ArgList doesn't depend on Options.h anymore.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89313 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-19 04:25:22 +00:00
Daniel Dunbar
e4bdae78c6
Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead of taking a Claim argument.
...
- Most driver code always claims, and bool arguments don't play nice with the overloads.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89308 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-19 04:00:53 +00:00
Daniel Dunbar
b827a0541b
Use Option::matches instead of direct ID comparison.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89305 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-19 03:26:40 +00:00
Edward O'Callaghan
69203e108b
Fix passing stdc++ correctly in the FreeBSD toolchain support, Credit to Roman Divacky.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89205 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-18 14:51:31 +00:00
David Chisnall
5e530af5d5
Added block type introspection support.
...
As per Fariborz's suggestion, committed now but can be reverted later if the used flag is problematic for Apple.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89134 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 19:33:30 +00:00
Daniel Dunbar
9e5cc6b703
Add -fblocks, -stack-protector, and -fobjc-nonfragile-abi defaulting to driver,
...
instead of using getDefaultLangOptions.
- Remove unused -fobjc-tight-layout while at it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89065 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 08:07:36 +00:00
Daniel Dunbar
c5a97ec194
Move -fnext-runtime defaulting to driver (and change clang-cc default to
...
-fnext-runtime), instead of using getDefaultLangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89058 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 07:07:28 +00:00
Daniel Dunbar
0be42c44f0
Move -fms-extensions defaulting to driver, instead of using getDefaultLangOptions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89057 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 07:06:20 +00:00
Daniel Dunbar
1f95e6567f
Move char-is-signed defaulting to driver, instead of using
...
getDefaultLangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89053 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 06:37:03 +00:00
Daniel Dunbar
f86feddbd5
Add clang -mcpu=native support, patch by Roman Divacky, varioustweaks by me.
...
- We still need support for detecting the target features, since the name
doesn't actually do a good job of decribing what the CPU supports (for LLVM).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88819 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14 22:04:54 +00:00
Edward O'Callaghan
76e80c0e96
Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86459 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-08 10:13:36 +00:00
John Thompson
a6fda124bf
Adding -fshort-wchar option.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86167 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 20:14:16 +00:00
Daniel Dunbar
838be483dc
Move -fcolor-diagnostics logic to driver.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86014 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-04 06:24:57 +00:00
Daniel Dunbar
55efe142a8
Move logic for selection -fmessage-length= to driver.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86013 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-04 06:24:47 +00:00
Daniel Dunbar
294691eb1c
Fix indentation.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86011 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-04 06:24:38 +00:00
Tanya Lattner
59876c2713
Merge constant array and structures. This will create a global variables for arrays and structs that are constant and their initializer is constant. It is on by default but can be disable with the flag -fno-merge-all-constants.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85991 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-04 01:18:09 +00:00
Chris Lattner
e6113de52d
Implement support for the -undef command line option, patch by
...
Roman Divacky! PR5363
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85932 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03 19:50:27 +00:00
Mike Stump
4d63f8bc26
Fix -pthread on dragonfly. Patch by Sascha Wildner.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85679 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-31 20:11:46 +00:00
Daniel Dunbar
dd4fe00f03
Change the driver to do the Darwin triple mangling itself instead of forwarding
...
-mmacosx-version-min and -miphoneos-version-min to clang-cc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85600 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-30 18:12:20 +00:00
Daniel Dunbar
ee848a73e5
Remove some obsolete or unnecessary FIXMEs.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85475 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-29 02:39:57 +00:00
Daniel Dunbar
6e8371eb97
PR5328: Allow duplicatic -pedantic (and -pedantic-errors) options.
...
- clang-cc doesn't care about their relative order with other -W options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85473 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-29 02:24:45 +00:00
Daniel Dunbar
f7fb31f475
Kill off MakeFormattedString helper function.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85472 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-29 02:24:37 +00:00
Daniel Dunbar
607d7f6d8f
Reject -I- in driver instead of clang-cc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85469 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-29 01:53:44 +00:00
Douglas Gregor
55d3f7ae51
[llvm up]
...
Switch a few ugly switch-on-string-literal constructs to use the new
llvm::StringSwitch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85461 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-29 00:41:01 +00:00
Edward O'Callaghan
e7e18200e6
Fix for PR4887, Credit to Jonathan Gray.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85392 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-28 15:13:08 +00:00
Rafael Espindola
8d737cc78c
Rename -nostdclanginc to -nobuiltininc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85116 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-26 13:36:57 +00:00
Edward O'Callaghan
ff430e6d68
AuroraUX toolchain should call GNU assembler not the Solaris assembler.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84469 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-19 07:02:08 +00:00
Edward O'Callaghan
3cecc19f60
dynamic linker arg is incorrectly invoking gnu ld arg syntax instead of svr4 ld syntax in AuroraUX toolchain.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84266 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-16 19:44:18 +00:00
Nuno Lopes
528365d318
fix -ansi in c++: it means -std=c++98
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84254 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-16 14:28:06 +00:00
Daniel Dunbar
0ebd9321ba
Driver: Default to using PTH for C++ precompiled header support, PCH for C++
...
isn't implemented yet.
- <rdar://problem/7297571> Clang should use pretokenized headers for C++ PCH
files
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84197 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-15 20:02:44 +00:00
Edward O'Callaghan
7adf94906e
AuroraUX toolchain fixes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84176 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-15 07:44:07 +00:00
Edward O'Callaghan
c37691068d
-funit-at-a-time is the default however some current makefiles pass -fno-unit-at-a-time which is ignored by GCC, we should warn about this not error out.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83976 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-13 16:41:34 +00:00
Rafael Espindola
6961fdd661
Add the -nostdclanginc option to clang (the driver).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83377 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-06 12:45:37 +00:00
Fariborz Jahanian
85caf03ee4
Set __EXCEPTIONS by checking on darwin's triple.
...
Patch by Rafael Espindola.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83209 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-01 20:30:46 +00:00
Rafael Espindola
f759df06d9
Move the "needs exception support" logic to clang. This also fixes
...
-fno-exceptions in C++ code. We used to always define __EXCEPTIONS in
C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83199 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-01 13:33:33 +00:00
Ted Kremenek
b8bb3e797c
Turn on 'RegionStore' as the default store manager both for 'clang --analyze' and 'scan-build'. Leave 'BasicStore' as the default store manager in 'clang-cc'. While there are still known warts with RegionStore, it's ready to be tested by general users.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82752 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-25 05:55:59 +00:00
Daniel Dunbar
1d4612b829
Split Darwin toolchain into Clang and GCC Darwin toolchains with a common base.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82213 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 08:15:13 +00:00
Daniel Dunbar
6cd4154b90
Lift AddLinkRuntimeLibArgs into Darwin tool chain.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82212 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 08:15:03 +00:00
Daniel Dunbar
608d04cb7b
Move isMacosxVersionLT helpers to Darwin tool chain.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82211 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 08:14:55 +00:00
Daniel Dunbar
48d5aae438
Lift getMacosxVersionMin out into Darwin ToolChain.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82210 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 08:14:46 +00:00
Daniel Dunbar
6b200b2b69
Lift AddLinkerSearchPaths() into Darwin tool chain.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82209 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 08:14:36 +00:00
Daniel Dunbar
ae54af2fdc
Rename a variable to match its semantics.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82208 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 08:14:24 +00:00
Daniel Dunbar
20f0eacf16
Driver: Change -O to mean -O2, -O1 is meaningless.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82131 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-17 06:53:36 +00:00
Daniel Dunbar
e3b8d07e02
We don't need a -compile-ast clang-cc action, we can just use -S.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82105 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-17 00:47:53 +00:00
Daniel Dunbar
6bea73b330
Incremental improvement to logic determining whether we emit unwind tables or
...
not.
- PR4932.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82021 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-16 06:17:29 +00:00
Daniel Dunbar
2030d8f46b
Support -mabi= for clang/ARM.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81734 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-14 00:34:46 +00:00
Daniel Dunbar
f4aa4f61de
Swizzle the target triple based on -mthumb, and update clang-cc to recognize
...
thumb-foo-bar as an ARM target.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81497 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-11 01:14:50 +00:00
Daniel Dunbar
cbd1933f83
Initial handling of -m{soft-float,hard-float,float-abi=} for ARM.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81471 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 23:00:09 +00:00
Daniel Dunbar
e6ad3f9fce
Move X86 handling of -m[no-]soft-float and -m[no-]red-zone into AddX86TargetArgs.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81470 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 22:59:57 +00:00
Daniel Dunbar
1d65e4be6f
Change getLLVMArchNameForARM to just get the suffix.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81469 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 22:59:51 +00:00
Daniel Dunbar
728a512753
Add code to mangle the triple for LLVM on ARM.
...
- I think we should get rid of this distinction though, but I need to discuss with the interested parties.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81435 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 06:49:20 +00:00
Daniel Dunbar
f84a4a469d
Don't pass -fno-builtin-str{cat,cpy} to clang-cc, I forget we don't support that yet. PR4941.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81430 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 04:57:27 +00:00
Daniel Dunbar
b163ef7e7a
ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81429 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 04:57:17 +00:00
Daniel Dunbar
2ba9157590
Implement Darwin/ARM behavior for defaulting to -fno-builtin-str{cat,cpy}.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81425 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 03:37:02 +00:00
Daniel Dunbar
e2fd66418e
Add a check that -static is not used with -dynamic or -mdynamic-no-pic.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81421 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 01:21:12 +00:00
Daniel Dunbar
88a3d6cf5e
Factor out CheckPreprocessing options to share between Clang/CC1 tools.
...
Also, fix forwarding of -C/-CC to cc1.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81420 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 01:21:05 +00:00
Daniel Dunbar
6acda16e9c
Move Clang X86 cpu/feature argument translation into AddX86TargetArgs.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81390 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 22:33:08 +00:00
Daniel Dunbar
5ed34f4c58
Change Get{File,Program}Path to return an std::string (instead of a sys::Path).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81389 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 22:33:00 +00:00
Daniel Dunbar
881376467c
Remove gratuitous use of c_str().
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81388 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 22:32:48 +00:00
Daniel Dunbar
302e2eacf6
Use Twine concatenation instead of llvm::format.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81387 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 22:32:41 +00:00
Daniel Dunbar
5b750fe618
Simplify.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81386 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 22:32:34 +00:00
Daniel Dunbar
cc6f803f98
Use AddDarwinArch for passing arch name to assembler.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81368 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 18:36:27 +00:00
Daniel Dunbar
fbefe6bd6f
Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch there.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81367 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 18:36:20 +00:00
Mike Stump
1eb4433ac4
Remove tabs, and whitespace cleanups.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 15:08:12 +00:00
Daniel Dunbar
e0be8b1729
Remove FIXMEs for pedantically-gcc-bug-compatible behavior.
...
- We aren't going to fix these since they haven't caused problems in practice.
- Similarly, don't forward -object to Darwin ld.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81224 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-08 16:39:16 +00:00
Daniel Dunbar
ae33f8ff47
Merge libgcc spec changes for darwin::Link::ConstructJob.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81022 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-04 18:35:47 +00:00
Daniel Dunbar
d82f8fa537
Tweak darwin::Link::AddLinkArgs.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81021 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-04 18:35:41 +00:00
Daniel Dunbar
78dbd580a0
Implement darwin::Link::AddDarwinArch for ARM.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81020 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-04 18:35:31 +00:00
Daniel Dunbar
30392de468
Darwin: Pass -iphoneos-version-min to ld when building for ARM.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81019 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-04 18:35:21 +00:00
Daniel Dunbar
f395528158
Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81016 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-04 18:34:51 +00:00
Daniel Dunbar
5345c391c6
Add basic support for -pthread.
...
- Patch by David Chisnall, with PCH and Darwin support mixed in.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80883 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-03 04:54:28 +00:00
Daniel Dunbar
5915fbf310
Add driver support for -emit-ast and AST compilation steps.
...
- <rdar://problem/7185031> Add 'clang' option '-emit-ast'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80678 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-01 16:57:46 +00:00