diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-19 22:42:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 22:42:28 +0000 |
commit | c7b8814bb4f2e6052060d6118d3bc3b66f5c5b0b (patch) | |
tree | 8ea6af8d6d1776b8e40c0feed7d63c85f182ae57 /lib/Target/CBackend | |
parent | 67847538148ed956aaa14a07a77902fb991445f2 (diff) | |
download | external_llvm-c7b8814bb4f2e6052060d6118d3bc3b66f5c5b0b.zip external_llvm-c7b8814bb4f2e6052060d6118d3bc3b66f5c5b0b.tar.gz external_llvm-c7b8814bb4f2e6052060d6118d3bc3b66f5c5b0b.tar.bz2 |
give MCAsmInfo a 'has little endian' bit. This is unfortunate, but
I really want clients of the streamer to be able to say "emit this
64-bit integer" and have it get broken down right by the streamer.
I may change this in the future, we'll see how it works out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 5015d1b..1feadd2 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -60,7 +60,7 @@ extern "C" void LLVMInitializeCBackendTarget() { namespace { class CBEMCAsmInfo : public MCAsmInfo { public: - CBEMCAsmInfo() { + CBEMCAsmInfo(bool isLE) : MCAsmInfo(isLE) { GlobalPrefix = ""; PrivateGlobalPrefix = ""; } @@ -1893,7 +1893,7 @@ bool CWriter::doInitialization(Module &M) { if (const Target *Match = TargetRegistry::lookupTarget(Triple, E)) TAsm = Match->createAsmInfo(Triple); #endif - TAsm = new CBEMCAsmInfo(); + TAsm = new CBEMCAsmInfo(TD->isLittleEndian()); Mang = new Mangler(*TAsm); // Keep track of which functions are static ctors/dtors so they can have |