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 | 003b5c8472362a72a1f55bc6cc9c521744cec749 (patch) | |
tree | 423975b4b113b6213c764291956833ee710546b8 /llvm/lib/Target/CBackend | |
parent | 5d7aa7fa0ae5154c8ca7fe8851b0cafcf8d61700 (diff) | |
download | bcm5719-llvm-003b5c8472362a72a1f55bc6cc9c521744cec749.tar.gz bcm5719-llvm-003b5c8472362a72a1f55bc6cc9c521744cec749.zip |
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.
llvm-svn: 93934
Diffstat (limited to 'llvm/lib/Target/CBackend')
-rw-r--r-- | llvm/lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index 5015d1bcce8..1feadd2a930 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/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 |