Fix some fixme's in #if 0'd code by making it dependent on the structural
[oota-llvm.git] / lib / CodeGen / PseudoSourceValue.cpp
index d0ea7069d4bbbe64d003a7b6d2e2553e6a23f738..81cbfb83d2fc7d40c1b0e8c6cff95cfc35cadccc 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/CodeGen/PseudoSourceValue.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/Support/Compiler.h"
+#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/raw_ostream.h"
 #include <map>
@@ -42,7 +43,7 @@ PseudoSourceValue::PseudoSourceValue() :
   Value(PointerType::getUnqual(Type::Int8Ty), PseudoSourceValueVal) {}
 
 void PseudoSourceValue::dump() const {
-  print(errs()); errs() << '\n'; errs().flush();
+  print(errs()); errs() << '\n';
 }
 
 void PseudoSourceValue::print(raw_ostream &OS) const {
@@ -83,7 +84,7 @@ bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const {
       this == getConstantPool() ||
       this == getJumpTable())
     return true;
-  assert(0 && "Unknown PseudoSourceValue!");
+  llvm_unreachable("Unknown PseudoSourceValue!");
   return false;
 }