Bill Wendling
99d43b4085
Fix build by passing in the needed variable after r153860.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153861 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-02 06:17:37 +00:00
Jim Grosbach
a187c5cc7c
Add MCRegisterInfo to the MCInstPrinter factory function interface.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152046 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-05 19:33:41 +00:00
Dylan Noblesmith
c93dc78896
Basic: import IntrusiveRefCntPtr<> into clang namespace
...
The class name is long enough without the llvm:: added.
Also bring in RefCountedBase and RefCountedBaseVPTR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150958 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-20 14:00:23 +00:00
Dylan Noblesmith
1e4c01b792
drop more llvm:: prefixes on OwningPtr<>
...
More cleanup after r149798.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150379 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-13 12:32:21 +00:00
Jim Grosbach
fc30829694
Have the driver pass CPU and target feature information to cc1as.
...
When creating the MCSubtargetInfo, the assembler driver uses the CPU and
feature string to construct a more accurate model of what instructions
are and are not legal.
rdar://10840476
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150273 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-10 20:37:10 +00:00
David Blaikie
6bd17d2f2e
Make use of const-correct ParseCommandLineOptions
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150000 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-07 19:36:38 +00:00
Jim Grosbach
6a9a6d22d7
Pass the SourceMgr to the MCContext for cc1as.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149608 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-02 17:54:07 +00:00
Dylan Noblesmith
89ea416d3f
driver: fix unused variable warning
...
from r147218.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147278 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-26 19:29:47 +00:00
Dylan Noblesmith
8fdb6dee2d
Let CompilerInvocation initialization indicate failure
...
This fixes the FIXMEs in ParseAnalyzeArgs. (Also a
precursor to moving the analyzer into an AST plugin.)
For consistency, do the same with AssemblerInvocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147218 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-23 03:05:38 +00:00
Kevin Enderby
567003e572
Last part of support for generating dwarf for assembly source files. This gets
...
the clang driver to enable this when assembling a .s file. rdar://9275556
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147167 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-22 19:31:58 +00:00
Sebastian Pop
5d8b954842
rename getHostTriple into getDefaultTargetTriple in clang
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143503 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 21:33:06 +00:00
Nick Lewycky
ea523d73a6
Wire up support for the controlling the extended dwarf .file directive. With
...
r142300 but not this patch, clang -S may emit .s files that assemblers other
than llvm-mc can't parse.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142301 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 23:05:52 +00:00
David Blaikie
d6471f7c19
Rename Diagnostic to DiagnosticsEngine as per issue 5397
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140478 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-25 23:23:43 +00:00
James Molloy
066d502b2d
Fix up MCInstPrinter creation to take the new SubtargetInfo parameter (see LLVM r139237)
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139238 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-07 17:25:30 +00:00
Evan Cheng
a6b4045dc4
Match LLVM change: TargetRegistry and TargetSelect have been moved to Support.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138451 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-24 18:09:14 +00:00
Jim Grosbach
09190be8ef
Update createMCAsmParser() to match r137735.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137736 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-16 18:33:55 +00:00
Evan Cheng
ccb21e4f2b
Assembler really doesn't need to create TargetMachine anymore.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136045 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-26 01:49:26 +00:00
Evan Cheng
7b6def7d17
Rename createCodeEmitter to createMCCodeEmitter; createObjectStreamer to createMCObjectStreamer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136032 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-26 00:42:40 +00:00
Evan Cheng
3771235c9b
Rename createAsmParser to createMCAsmParser.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136029 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-26 00:24:45 +00:00
Evan Cheng
21118dc86e
Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136011 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-25 23:25:09 +00:00
Evan Cheng
75d8c91a5c
Assembler doesn't need to initialize TargetMachine's anymore.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135964 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-25 20:53:26 +00:00
Evan Cheng
3db87b8103
Move TargetAsmParser.h TargetAsmBackend.h and TargetAsmLexer.h to MC where they belong.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135834 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-23 00:45:53 +00:00
Evan Cheng
d99d3e1c01
Match LLVM API change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135813 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-22 21:59:11 +00:00
Evan Cheng
66488ed140
Match MCContext change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135612 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-20 19:53:19 +00:00
Evan Cheng
36fc3aa1e3
Match LLVM API change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135570 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-20 06:22:27 +00:00
Evan Cheng
2860e30d83
Match createTargetMachine API change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135469 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-19 06:37:41 +00:00
Evan Cheng
884744b65e
MCContext now takes MCRegisterInfo.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135425 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-18 20:57:51 +00:00
Evan Cheng
e27eb59cb3
Match llvm API change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135220 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-14 23:50:56 +00:00
Evan Cheng
74e1332a94
Match createCodeEmitter change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134885 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-11 04:24:19 +00:00
Joerg Sonnenberger
8db099012c
Unbreak -cc1as mode after MC subtarget changes
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134877 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-10 19:16:25 +00:00
Evan Cheng
bb36ed954a
createAsmParser API change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134797 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 06:04:17 +00:00
Chandler Carruth
4d6980bd07
Update the creation of the TargetAsmParser based on API change in r134678.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134680 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-08 03:15:48 +00:00
Evan Cheng
24c9db6f36
createMCInstPrinter doesn't need TargetMachine anymore.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134526 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-06 19:45:57 +00:00
Evan Cheng
368691e5ac
createTargetMachine now takes a CPU string.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134128 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-30 02:06:32 +00:00
Joerg Sonnenberger
d793350dee
Support -fatal-warnings for the assembler frontend
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131662 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-19 18:42:29 +00:00
Rafael Espindola
1bf3902575
Update API.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130588 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-30 03:46:18 +00:00
Daniel Dunbar
402adc3bc0
Frontend/cc1as: Add support for -L.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128432 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-28 22:49:24 +00:00
Bill Wendling
ad3dfbe463
Pass in the TargetMachine parameter to the inst printer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127987 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-21 05:02:03 +00:00
Rafael Espindola
3176cca2fe
Add support for the --noexecstack option. Fixes PR8762.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124078 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-23 17:58:26 +00:00
Michael J. Spencer
4eeebc464e
MemoryBuffer API update.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121956 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-16 03:28:14 +00:00
Daniel Dunbar
66cdf26f28
Update for LLVM API change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121950 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-16 03:06:05 +00:00
Rafael Espindola
7872d48c61
Fixed version of 121435.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121472 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-10 07:40:14 +00:00
Rafael Espindola
afb3fa9e97
Revert my previous patch to make the valgrind bots happy.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121460 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-10 04:01:05 +00:00
Rafael Espindola
4cf8b1ecf2
Update clang for the API changes in the cfi patch.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121435 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-09 23:48:34 +00:00
Michael J. Spencer
3a321e23f6
Use error_code instead of std::string* for MemoryBuffer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121378 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-09 17:36:38 +00:00
Michael J. Spencer
03013fa9a0
Merge System into Support.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120297 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-29 18:12:39 +00:00
Argyrios Kyrtzidis
e8f0ba75a3
getNumErrors() -> hasErrorOccurred()
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119765 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-19 00:19:18 +00:00
Argyrios Kyrtzidis
33e4e70c8c
Refactoring of Diagnostic class.
...
-Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class.
-DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units.
-The rest of the state in Diagnostic object is considered related and tied to one translation unit.
-Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a
SourceLocation instead of a FullSourceLoc.
-Reflect the changes to various interfaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119730 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-18 20:06:41 +00:00
Rafael Espindola
4f036fad04
Call InitSections when assembling. This makes clang's output match that of
...
llvm-mc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116405 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-13 14:53:57 +00:00
Duncan Sands
2dc14532b6
Straighten out target triples provided on the command line
...
before using them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112468 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-30 09:42:39 +00:00