Chris Lattner
269737461d
stringref-ize the MemoryBuffer::get apis. This requires
...
a co-committed clang patch.
llvm-svn: 100485
2010-04-05 22:42:30 +00:00
Chris Lattner
8fb6be1886
fix an ugly wart in the MCInstPrinter api where the
...
raw_ostream to print an instruction to had to be specified
at MCInstPrinter construction time instead of being able
to pick at each call to printInstruction.
llvm-svn: 100307
2010-04-04 05:04:31 +00:00
Chris Lattner
fb18894982
remove some extraneous casts
...
llvm-svn: 100287
2010-04-03 21:03:50 +00:00
Chris Lattner
c2f273b52d
Add special case bitcode support for DebugLoc. This avoids
...
having the bitcode writer materialize mdnodes for all the
debug location tuples when writing out the bc file and
stores the information in a more compact form. For example,
the -O0 -g bc file for combine.c in 176.gcc shrinks from
739392 to 512096 bytes.
This concludes my planned short-term debug info work.
llvm-svn: 100261
2010-04-03 02:17:50 +00:00
Mikhail Glushenkov
f4668a70f5
Pass -shared to the linker.
...
llvm-svn: 100260
2010-04-03 02:00:03 +00:00
Chris Lattner
6fb3f169c8
add a couple missing enum names.
...
llvm-svn: 100257
2010-04-03 01:05:24 +00:00
Sean Callanan
ea4f4644ee
Updated the install location for EnhancedDisassembly
...
on Mac OS X to use @rpath rather than an absolute
path. Also allowed the version to be set using an
environment variable.
llvm-svn: 100163
2010-04-02 00:53:42 +00:00
Mikhail Glushenkov
a44a629d14
Pass -m32/-m64 to assembler.
...
llvm-svn: 100064
2010-03-31 23:51:55 +00:00
Dan Gohman
ad125e679e
Fix llvm-ld to clean up its output files in case of an error.
...
llvm-svn: 99915
2010-03-30 19:56:41 +00:00
Chris Lattner
64d472ae54
revert r99719 which is breaking the botz.
...
llvm-svn: 99721
2010-03-27 18:01:10 +00:00
Dan Gohman
542d5a3602
Make llvm-ld remove its output files in the event of an error.
...
llvm-svn: 99719
2010-03-27 16:49:51 +00:00
Dan Gohman
4651d3f3ef
No need to check the same condition twice.
...
llvm-svn: 99716
2010-03-27 16:36:08 +00:00
Daniel Dunbar
d04906b49e
llvm-mc: Add a -mc-relax-all option, which relaxes every fixup. We always need
...
exactly two passes in that case, and don't ever need to recompute any layout,
so this is a nice baseline for relaxation performance.
llvm-svn: 99563
2010-03-25 22:49:09 +00:00
Dan Gohman
7f76052c8c
Trim #includes.
...
llvm-svn: 99416
2010-03-24 19:56:17 +00:00
Dan Gohman
475a978a96
It's not necessary to call raw_ostream::close explicitly on automatic
...
raw_ostream variables immediately before they go out of scope.
llvm-svn: 99413
2010-03-24 19:00:02 +00:00
Daniel Dunbar
b07aeb1c00
llvm-mc: Support -filetype=null, for timing purposes.
...
llvm-svn: 99349
2010-03-23 23:47:12 +00:00
Bill Wendling
a33116ece2
Remove if DISABLED not if not DISABLED...
...
llvm-svn: 99343
2010-03-23 23:09:03 +00:00
Bill Wendling
9a977ce8ce
Use "DISABLE_EDIS" to disable building "edis" explicitly. Don't build it for
...
Apple-style builds.
llvm-svn: 99336
2010-03-23 22:15:33 +00:00
Chris Lattner
9870d15fb7
make sure to delete the llvm module before calling llvm_shutdown,
...
this fixes crashes in error cases, PR6683
llvm-svn: 99334
2010-03-23 21:59:43 +00:00
Dan Gohman
396921fedd
llc doesn't need LinkAllVMCore.
...
llvm-svn: 99186
2010-03-22 16:59:44 +00:00
Jeffrey Yasskin
da98ae0163
Avoid leaking the FunctionPassManager from opt.
...
llvm-svn: 99180
2010-03-22 15:56:04 +00:00
Jeffrey Yasskin
94ecd53a3a
Free all Constants in ~LLVMConstantImpl. We avoid assertion failures
...
by dropping all references from all constants that can use other
constants before trying to destroy any of them.
I also had to free bugpoint's Module in ~BugDriver().
llvm-svn: 99160
2010-03-22 05:23:37 +00:00
Daniel Dunbar
78c65dad40
llvm-mc: Fix MCInstPrinter memory leaks.
...
llvm-svn: 99101
2010-03-20 22:36:35 +00:00
Daniel Dunbar
760b4c67b1
llvm-mc: Fix memory leak of MCAsmInfo.
...
llvm-svn: 99098
2010-03-20 22:36:25 +00:00
Daniel Dunbar
b478edff7c
llvm-mc: Fix target selection for --disassemble to use GetTarget.
...
llvm-svn: 98973
2010-03-19 18:07:50 +00:00
Chris Lattner
32452cf12f
fix an MCInstPrinter leak that jyasskin pointed out:
...
createAsmStreamer now takes ownership of the instprinter.
llvm-svn: 98939
2010-03-19 05:48:53 +00:00
Jeffrey Yasskin
16289314f6
Bugpoint's default memory limit (100MB) was too low for valgrind, so
...
this patch raises the default to 800MB when valgrind's active. 800
was chosen semi-arbitrarily.
llvm-svn: 98905
2010-03-19 00:09:28 +00:00
Sean Callanan
233132382a
Changed install_name for libEnhancedDisassembly.dylib on
...
Mac OS X to match current install location. This has no
effect on other platforms.
llvm-svn: 98773
2010-03-17 22:01:36 +00:00
Chris Lattner
75c1269e40
add support for bugpointing the integrated assembler. Something like this
...
works for me: bugpoint Output/bisort.llvm.bc -run-llc-ia -safe-run-llc
This uses llc with the integrated assembler as the test compiler and llc
without it as the safe compiler.
llvm-svn: 98618
2010-03-16 06:41:47 +00:00
Daniel Dunbar
661d89861c
llvm-mc: Delete output files on error.
...
llvm-svn: 98445
2010-03-13 19:31:47 +00:00
Daniel Dunbar
33c92a1a88
llvm-mc: Support -n, useful for comparing -integrated-as output since the
...
compiler may not lead with the text section.
llvm-svn: 98418
2010-03-13 02:20:57 +00:00
Daniel Dunbar
92c67d1d56
llvm-mc: Support -arch as a simplified form of -triple.
...
llvm-svn: 98417
2010-03-13 02:20:38 +00:00
Chris Lattner
c101ad818c
give Mangler access to TargetData.
...
llvm-svn: 98378
2010-03-12 20:47:28 +00:00
Chris Lattner
956582f876
make the mangler take an MCContext instead of an MAI.
...
No functionality change.
llvm-svn: 98363
2010-03-12 18:44:54 +00:00
Chris Lattner
f4dce6a6d8
remove MAI argument from createAsmStreamer since it
...
can get it from the context now.
llvm-svn: 98361
2010-03-12 18:28:53 +00:00
Chris Lattner
debc026df2
change MCContext to always have an MCAsmInfo.
...
llvm-svn: 98293
2010-03-11 22:53:35 +00:00
Daniel Dunbar
687d99cfa8
MC: Provide MCAssembler with a TargetAsmBackend.
...
llvm-svn: 98222
2010-03-11 01:34:27 +00:00
Duncan Sands
26e65e7ee8
Attempt to fix random build failures seen when doing highly
...
parallel builds: the gold plugin fails to link because the lto
library is in the middle of being written out by the linker.
llvm-svn: 98054
2010-03-09 09:03:21 +00:00
Mikhail Glushenkov
67cac93b81
Make it not an error to specify -O* options several times.
...
As in 'llvmc -O2 -O2 test.c'.
llvm-svn: 97787
2010-03-05 04:46:39 +00:00
Chris Lattner
a867bc28df
apparently if gold is around lto needs to be part of DIRS.
...
llvm-svn: 97780
2010-03-05 02:34:34 +00:00
Chris Lattner
41804bf422
Only build libedis if ENABLE_SHARED is specified, just like liblto.
...
Don't build any of the dynamic library stuff on cygwin/mingw.
llvm-svn: 97771
2010-03-05 00:59:18 +00:00
Chris Lattner
bbffb2392c
liblto and gold don't need to be built in serial
...
llvm-svn: 97770
2010-03-05 00:54:45 +00:00
Erick Tryzelaar
4e7593750d
Rewrite makefiles to explicitly reference DESTDIR to fix bug 3153.
...
We need this so can not bake DESTDIR into the O'Caml symlinks.
llvm-svn: 97743
2010-03-04 20:56:19 +00:00
Dan Gohman
ed398abb31
Make llc opt into the addPassesToEmitFile verify pass.
...
llvm-svn: 97502
2010-03-01 21:45:21 +00:00
Chris Lattner
e006dfe764
don't build edis if the x86 target isn't enabld.
...
llvm-svn: 97268
2010-02-26 21:26:33 +00:00
Sanjiv Gupta
7ede252650
disable-mem2reg and disable-gvn options should not be used by the driver.
...
llvm-svn: 97236
2010-02-26 18:38:44 +00:00
Jeffrey Yasskin
f073920691
Try r96559 for the third time. This time the shared library is only built if
...
--enable-shared is passed to configure.
llvm-svn: 97119
2010-02-25 06:34:33 +00:00
Jeffrey Yasskin
82c2f2fd24
Roll back r96959 again.
...
llvm-svn: 96981
2010-02-23 20:53:37 +00:00
Jeffrey Yasskin
0c478ab8af
Oops. Pass -lgcc _only_ on ARM, not on everything except ARM.
...
llvm-svn: 96965
2010-02-23 18:40:48 +00:00
Jeffrey Yasskin
e653785a3d
Roll r96559 forward again, adding libLLVM-2.7svn.so to LLVM. This links 3 of
...
the examples shared to make sure the shared library keeps working.
llvm-svn: 96959
2010-02-23 18:10:07 +00:00