diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 02:24:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 02:24:39 +0000 |
commit | 4e2b922131ae617cb8738d1871e9d918c44bdb69 (patch) | |
tree | d7ce433d5ae4fb27277c6d3777ca12199ffd51ac /lib/MC | |
parent | e431884ed751a78941cb32835d82dda24c839a1e (diff) | |
download | llvm-4e2b922131ae617cb8738d1871e9d918c44bdb69.tar.gz llvm-4e2b922131ae617cb8738d1871e9d918c44bdb69.tar.bz2 llvm-4e2b922131ae617cb8738d1871e9d918c44bdb69.tar.xz |
Remove 'using std::errro_code' from lib.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCContext.cpp | 3 | ||||
-rw-r--r-- | lib/MC/MCModuleYAML.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 4ec621fea0..cc98be6ea6 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -28,7 +28,6 @@ #include <map> using namespace llvm; -using std::error_code; MCContext::MCContext(const MCAsmInfo *mai, const MCRegisterInfo *mri, const MCObjectFileInfo *mofi, const SourceMgr *mgr, @@ -40,7 +39,7 @@ MCContext::MCContext(const MCAsmInfo *mai, const MCRegisterInfo *mri, AllowTemporaryLabels(true), DwarfCompileUnitID(0), AutoReset(DoAutoReset) { - error_code EC = llvm::sys::fs::current_path(CompilationDir); + std::error_code EC = llvm::sys::fs::current_path(CompilationDir); if (EC) CompilationDir.clear(); diff --git a/lib/MC/MCModuleYAML.cpp b/lib/MC/MCModuleYAML.cpp index 0df6afd9f0..f6b7431eb3 100644 --- a/lib/MC/MCModuleYAML.cpp +++ b/lib/MC/MCModuleYAML.cpp @@ -25,7 +25,6 @@ #include <vector> namespace llvm { -using std::error_code; namespace { @@ -454,7 +453,7 @@ StringRef yaml2mcmodule(std::unique_ptr<MCModule> &MCM, StringRef YamlContent, InstrRegInfoHolder IRI(MII, MRI); yaml::Input YIn(YamlContent, (void *)&IRI); YIn >> YAMLModule; - if (error_code ec = YIn.error()) + if (std::error_code ec = YIn.error()) return ec.message(); StringRef err = Parser.parse(YAMLModule); if (!err.empty()) |