give MCAsmInfo a 'has little endian' bit. This is unfortunate, but
[oota-llvm.git] / lib / Target / CBackend / CBackend.cpp
index 5015d1bcce80e3bc6398876ef49bb1e076302e0f..1feadd2a9308858b7ba61744faaa78d933b779e5 100644 (file)
@@ -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