[X86][Haswell][SchedModel] Add architecture specific scheduling models.
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / Interpreter.cpp
index e3e63f4d5f9cd3adfe0fee1fefb7eb3810c1eb38..814efcc27fcbb9dd733c0af9a40e7b6918186d1b 100644 (file)
@@ -19,7 +19,6 @@
 #include "llvm/IR/Module.h"
 #include <cstring>
 using namespace llvm;
-using std::error_code;
 
 namespace {
 
@@ -35,7 +34,7 @@ extern "C" void LLVMLinkInInterpreter() { }
 ///
 ExecutionEngine *Interpreter::create(Module *M, std::string* ErrStr) {
   // Tell this Module to materialize everything and release the GVMaterializer.
-  if (error_code EC = M->materializeAllPermanently()) {
+  if (std::error_code EC = M->materializeAllPermanently()) {
     if (ErrStr)
       *ErrStr = EC.message();
     // We got an error, just return 0