Fix asserts in CodeGen from:
authorRichard Trieu <rtrieu@google.com>
Sat, 10 Sep 2011 01:07:54 +0000 (01:07 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 10 Sep 2011 01:07:54 +0000 (01:07 +0000)
  assert("error");

to:

  assert(0 && "error");

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139449 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ELFCodeEmitter.cpp
lib/CodeGen/ELFCodeEmitter.h

index 3fb087c5ea8b8c5bc096a45f6d5c2c044f4a74fe..660424c3c1411343c76870147f016bd161822493 100644 (file)
@@ -155,7 +155,7 @@ void ELFCodeEmitter::emitConstantPool(MachineConstantPool *MCP) {
     CPSections.push_back(CstPool.SectionIdx);
 
     if (CPE.isMachineConstantPoolEntry())
-      assert("CPE.isMachineConstantPoolEntry not supported yet");
+      assert(0 && "CPE.isMachineConstantPoolEntry not supported yet");
 
     // Emit the constant to constant pool section
     EW.EmitGlobalConstant(CPE.Val.ConstVal, CstPool);
index 2ec1f6e873d6310966791f432e4c0269895763bf..8671c674eecff005c60cf30bea7f95bb3dceb18e 100644 (file)
@@ -58,13 +58,13 @@ namespace llvm {
 
     /// emitLabel - Emits a label
     virtual void emitLabel(MCSymbol *Label) {
-      assert("emitLabel not implemented");
+      assert(0 && "emitLabel not implemented");
     }
 
     /// getLabelAddress - Return the address of the specified LabelID, 
     /// only usable after the LabelID has been emitted.
     virtual uintptr_t getLabelAddress(MCSymbol *Label) const {
-      assert("getLabelAddress not implemented");
+      assert(0 && "getLabelAddress not implemented");
       return 0;
     }