diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
commit | 4453e4294515bfc0cff16fdd7278f217d9efba4f (patch) | |
tree | 3d7139f652f8d50a7f9cf89807e50d89cb4f2e3e /llvm/tools/llvm-dis/llvm-dis.cpp | |
parent | 567b1546ac5446005757eaf3a2875a75648c8fc4 (diff) | |
download | bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.tar.gz bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.zip |
Remove 'using std::error_code' from tools.
llvm-svn: 210876
Diffstat (limited to 'llvm/tools/llvm-dis/llvm-dis.cpp')
-rw-r--r-- | llvm/tools/llvm-dis/llvm-dis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp index f5dfedbc477..3b0f838f1d7 100644 --- a/llvm/tools/llvm-dis/llvm-dis.cpp +++ b/llvm/tools/llvm-dis/llvm-dis.cpp @@ -34,7 +34,6 @@ #include "llvm/Support/ToolOutputFile.h" #include <system_error> using namespace llvm; -using std::error_code; static cl::opt<std::string> InputFilename(cl::Positional, cl::desc("<input bitcode>"), cl::init("-")); @@ -138,7 +137,7 @@ int main(int argc, char **argv) { M.reset(getStreamedBitcodeModule(DisplayFilename, streamer, Context, &ErrorMessage)); if(M.get()) { - if (error_code EC = M->materializeAllPermanently()) { + if (std::error_code EC = M->materializeAllPermanently()) { ErrorMessage = EC.message(); M.reset(); } |