diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-07-15 02:09:41 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-15 02:09:41 +0000 |
| commit | a83b37a9db2880091f4f8e7683c30ca142678fff (patch) | |
| tree | 6b1a24b3947cec4bb8af1f6c0f37983211cfa712 /llvm/lib/MC/MCStreamer.cpp | |
| parent | 9b8605f78795f83b4e65a5a763772984d122702a (diff) | |
| download | bcm5719-llvm-a83b37a9db2880091f4f8e7683c30ca142678fff.tar.gz bcm5719-llvm-a83b37a9db2880091f4f8e7683c30ca142678fff.zip | |
Move some parts of TargetAsmInfo down to MCAsmInfo. This is not the greatest
solution but it is a small step towards removing the horror that is
TargetAsmInfo.
llvm-svn: 135237
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index ae3ed0f3f61..6e96b78e315 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -15,7 +15,6 @@ #include "llvm/MC/MCSymbol.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Target/TargetAsmInfo.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/Twine.h" #include <cstdlib> @@ -81,7 +80,7 @@ void MCStreamer::EmitIntValue(uint64_t Value, unsigned Size, assert((isUIntN(8 * Size, Value) || isIntN(8 * Size, Value)) && "Invalid size"); char buf[8]; - const bool isLittleEndian = Context.getTargetAsmInfo().isLittleEndian(); + const bool isLittleEndian = Context.getAsmInfo().isLittleEndian(); for (unsigned i = 0; i != Size; ++i) { unsigned index = isLittleEndian ? i : (Size - i - 1); buf[i] = uint8_t(Value >> (index * 8)); |

