Fix compilation on Sparc: assert(0) => abort()
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 11 Mar 2004 19:08:24 +0000 (19:08 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 11 Mar 2004 19:08:24 +0000 (19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12289 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/Printer.cpp
lib/Target/X86/X86AsmPrinter.cpp

index 7a3e9b1a70ecd2ffa45ed240d75864250c533218..c6b581a5b41edb21fc30f45884f2a485e2989fdf 100644 (file)
@@ -59,11 +59,11 @@ namespace {
 
       // These should never be called
       virtual void emitWord(unsigned W) { assert(0); }
-      virtual uint64_t getGlobalValueAddress(GlobalValue *V) { assert(0); }
-      virtual uint64_t getGlobalValueAddress(const std::string &Name) { assert(0); }
-      virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { assert(0); }
-      virtual uint64_t getCurrentPCValue() { assert(0); }
-      virtual uint64_t forceCompilationOf(Function *F) { assert(0); }
+      virtual uint64_t getGlobalValueAddress(GlobalValue *V) { abort(); }
+      virtual uint64_t getGlobalValueAddress(const std::string &Name) { abort(); }
+      virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { abort(); }
+      virtual uint64_t getCurrentPCValue() { abort(); }
+      virtual uint64_t forceCompilationOf(Function *F) { abort(); }
 
   private:
       std::ostream& O;
index 7a3e9b1a70ecd2ffa45ed240d75864250c533218..c6b581a5b41edb21fc30f45884f2a485e2989fdf 100644 (file)
@@ -59,11 +59,11 @@ namespace {
 
       // These should never be called
       virtual void emitWord(unsigned W) { assert(0); }
-      virtual uint64_t getGlobalValueAddress(GlobalValue *V) { assert(0); }
-      virtual uint64_t getGlobalValueAddress(const std::string &Name) { assert(0); }
-      virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { assert(0); }
-      virtual uint64_t getCurrentPCValue() { assert(0); }
-      virtual uint64_t forceCompilationOf(Function *F) { assert(0); }
+      virtual uint64_t getGlobalValueAddress(GlobalValue *V) { abort(); }
+      virtual uint64_t getGlobalValueAddress(const std::string &Name) { abort(); }
+      virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { abort(); }
+      virtual uint64_t getCurrentPCValue() { abort(); }
+      virtual uint64_t forceCompilationOf(Function *F) { abort(); }
 
   private:
       std::ostream& O;