Chris Lattner
ab12e49b74
just remove interpreter support for endianness mismatches. This was
...
really old code from when we were running sparcv9 bc files on x86
(before I ported llvm-gcc 3 to work on x86) :)
llvm-svn: 79871
2009-08-23 22:50:28 +00:00
Chris Lattner
5247a6bd23
remove use of alloca.h
...
llvm-svn: 79870
2009-08-23 22:49:13 +00:00
Chris Lattner
3203639c35
Prune #includes from llvm/Linker.h and llvm/System/Path.h,
...
forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869
2009-08-23 22:45:37 +00:00
Chris Lattner
a8ee06281d
llvm/Support/Streams.h is now dead, zap it.
...
llvm-svn: 79865
2009-08-23 21:50:26 +00:00
Chris Lattner
b1620aff4e
Switch SubtargetFeature off of ostreams
...
llvm-svn: 79864
2009-08-23 21:41:43 +00:00
Chris Lattner
d6a9cc484b
eliminate the ostream version of CheckBitcodeOutputToConsole,
...
change the raw_ostream one to take the raw_ostream byref instead
of byptr. Prune #includes, eliminate a use of Streams.h
llvm-svn: 79863
2009-08-23 21:36:09 +00:00
Daniel Dunbar
e58499843b
Fix off-by-one in llvm::Format::print.
...
- This also shortens the Format.h implementation, and uses the print buffer
fully (it was wasting a character).
- This manifested as llvm-test failures, because one side effect was that
raw_ostream would write garbage '\x00' values into the output stream if it
happened that the string was at the end of the buffer. This meant that grep
would report 'Binary file matches', which meant the silly pattern matching
llvm-test eventually does would fail. Cute. :)
llvm-svn: 79862
2009-08-23 20:31:39 +00:00
Jim Grosbach
40e55542d5
SJLJ pass needs to punt if there's no personality function available.
...
llvm-svn: 79858
2009-08-23 18:13:48 +00:00
Chris Lattner
89e48e8aae
clean up #includes.
...
llvm-svn: 79857
2009-08-23 18:09:02 +00:00
Jakob Stoklund Olesen
291647e0d9
Fix PR4753.
...
When undoing a reuse in ReuseInfo::GetRegForReload, check if it was only a
sub-register being used. The MachineOperand::getSubReg() method is only valid
for virtual registers, so we have to recover the sub-register index manually.
llvm-svn: 79855
2009-08-23 13:01:45 +00:00
Benjamin Kramer
be9f477d5b
Remove Streams.h from the targets.
...
llvm-svn: 79853
2009-08-23 11:52:17 +00:00
Benjamin Kramer
e5458c19a2
Kill off more cerr/cout uses and prune includes a bit.
...
llvm-svn: 79852
2009-08-23 11:37:21 +00:00
Daniel Dunbar
40ba5f6f58
Fix -Asserts warnings.
...
llvm-svn: 79849
2009-08-23 10:29:55 +00:00
Benjamin Kramer
d76413b416
Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor tweaks.
...
llvm-svn: 79847
2009-08-23 10:01:13 +00:00
Benjamin Kramer
05c71d319e
Fix windows build.
...
llvm-svn: 79845
2009-08-23 08:57:52 +00:00
Daniel Dunbar
411094cde6
Fix some refactos for iostream changes (in -Asserts mode).
...
- The world needs better C++ refactoring tools, can I get an Amen!?
llvm-svn: 79843
2009-08-23 08:50:52 +00:00
Chris Lattner
e22a1d941e
remove some uses of llvm/Support/Streams.h
...
llvm-svn: 79842
2009-08-23 08:43:55 +00:00
Chris Lattner
b0478019b4
eliminate the std::ostream forms of the bitcode writing APIs.
...
llvm-svn: 79840
2009-08-23 07:49:08 +00:00
Chris Lattner
e9861c1cb8
remove uses of llvm/Support/Streams.h.
...
llvm-svn: 79838
2009-08-23 07:33:14 +00:00
Chris Lattner
f536c93134
convert LoopInfo.h and GraphWriter.h to use raw_ostream
...
llvm-svn: 79836
2009-08-23 07:19:13 +00:00
Chris Lattner
d8d0d40b2d
eliminate DOUT and make Debug.h not include Streams.h anymore, woo!
...
llvm-svn: 79835
2009-08-23 07:05:39 +00:00
Chris Lattner
bd73307361
eliminate uses of cerr()
...
llvm-svn: 79834
2009-08-23 07:05:07 +00:00
Chris Lattner
26ec3291f0
eliminate the last DOUTs from the targets.
...
llvm-svn: 79833
2009-08-23 06:49:22 +00:00
Chris Lattner
89d3d59e83
remove a few DOUTs here and there.
...
llvm-svn: 79832
2009-08-23 06:35:02 +00:00
Chris Lattner
1c0452caeb
Change Pass::print to take a raw ostream instead of std::ostream,
...
update all code that this affects.
llvm-svn: 79830
2009-08-23 06:03:38 +00:00
Chris Lattner
ea2bfd7a9f
eliminate the std::ostream form of WriteAsOperand and update clients.
...
This also updates dominator related stuff.
llvm-svn: 79825
2009-08-23 05:17:37 +00:00
Chris Lattner
8500c36f86
remove the std::ostream version of module and type printing.
...
llvm-svn: 79823
2009-08-23 04:52:46 +00:00
Chris Lattner
1ee1fc42c0
remove some DOUTs
...
llvm-svn: 79821
2009-08-23 04:44:11 +00:00
Chris Lattner
01dae858b6
eliminate the "Value" printing methods that print to a std::ostream.
...
This required converting a bunch of stuff off DOUT and other cleanups.
llvm-svn: 79819
2009-08-23 04:37:46 +00:00
Owen Anderson
95bdea8255
Use standard LLVM-style headers.
...
llvm-svn: 79817
2009-08-23 04:24:24 +00:00
Chris Lattner
2d541e612d
switch a couple things off std::ostream
...
llvm-svn: 79816
2009-08-23 04:02:03 +00:00
Chris Lattner
17429a9abe
switch from std::ostream to raw ostream, fix file header.
...
llvm-svn: 79815
2009-08-23 03:56:06 +00:00
Chris Lattner
6512a3a281
shoot a few more std::ostream print methods in the head.
...
llvm-svn: 79814
2009-08-23 03:47:42 +00:00
Chris Lattner
db2965c71f
remove various std::ostream version of printing methods from
...
MachineInstr and MachineOperand. This required eliminating a
bunch of stuff that was using DOUT, I hope that bill doesn't
mind me stealing his fun. ;-)
llvm-svn: 79813
2009-08-23 03:41:05 +00:00
Chris Lattner
11e35ba9c2
remove some DOUTs
...
llvm-svn: 79812
2009-08-23 03:20:44 +00:00
Chris Lattner
9a542aae19
remove std::ostream versions of printing stuff for MBB and MF,
...
upgrading a few things to use raw_ostream
llvm-svn: 79811
2009-08-23 03:13:20 +00:00
Chris Lattner
f16d8ade4f
Change raw_fd_ostream to take flags as an optional bitmask
...
instead of as two bools. Use this to add a F_Append flag
which has the obvious behavior.
Other unrelated changes conflated into this patch:
1. REmove EH stuff from llvm-dis and llvm-as, the try blocks
are dead.
2. Simplify the filename inference code in llvm-as/llvm-dis,
because raw_fd_ostream does the right thing with '-'.
3. Switch machine verifier to use raw_ostream instead of ostream
(Which is the thing that needed append in the first place).
llvm-svn: 79807
2009-08-23 02:51:22 +00:00
Chris Lattner
ed9a239afa
convert some stuff to work on raw_ostreams instead of std::ostream.
...
llvm-svn: 79803
2009-08-23 01:12:47 +00:00
Chris Lattner
c27b016566
fix a gone file.
...
llvm-svn: 79802
2009-08-23 01:11:21 +00:00
Chris Lattner
abcb18592a
remove some dead print method variants.
...
llvm-svn: 79801
2009-08-23 01:03:30 +00:00
Chris Lattner
cf11411573
convert the DIE printing stuff to use raw_ostream instead of std::ostream.
...
Tweak #includes.
llvm-svn: 79800
2009-08-23 01:01:17 +00:00
Chris Lattner
2c5fb733fa
random code cleanups.
...
llvm-svn: 79798
2009-08-23 00:51:47 +00:00
Chris Lattner
1c6c358071
remove some random indentation stuff, yay for efficiency.
...
llvm-svn: 79797
2009-08-23 00:51:00 +00:00
Chris Lattner
85bc7f732b
remove dead PrefixPrinter class.
...
llvm-svn: 79796
2009-08-23 00:47:04 +00:00
Chris Lattner
38a3eb5739
remove a dead class.
...
llvm-svn: 79795
2009-08-23 00:42:42 +00:00
Chris Lattner
f1c8c46e95
random cleanups.
...
llvm-svn: 79794
2009-08-23 00:35:30 +00:00
Eli Friedman
e8106d9fc6
Add check for completeness. Note that this doesn't actually have any
...
effect with the way the current code is structured.
llvm-svn: 79792
2009-08-23 00:14:19 +00:00
Chris Lattner
9a959112e3
switch formattedstream to use raw_ostream::indent. This eliminates
...
the weird MAX_COLUMN_PAD limitation.
llvm-svn: 79785
2009-08-22 23:16:09 +00:00
Chris Lattner
b20aefd460
add a raw_ostream::indent method, to be used like:
...
OS.indent(i) << "whatever";
people seem to like indenting things ;-)
llvm-svn: 79784
2009-08-22 23:10:29 +00:00
Benjamin Kramer
52cba58070
Forgot to update some CMakeLists.
...
llvm-svn: 79780
2009-08-22 22:20:11 +00:00