diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h index 47b718983d17..68b8d4e25a6c 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h @@ -22,7 +22,6 @@ namespace llvm { class AsmPrinter; class MCContext; -} // namespace llvm class AMDGPUMCInstLower { MCContext &Ctx; @@ -66,4 +65,5 @@ static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, return nullptr; } } // namespace +} // namespace llvm #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H diff --git a/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp b/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp index 6d7e834ca3d5..48b4e7f0d07b 100644 --- a/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp +++ b/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp @@ -20,6 +20,8 @@ #include "llvm/MC/MCContext.h" #include "llvm/MC/MCExpr.h" +using namespace llvm; + namespace { class R600MCInstLower : public AMDGPUMCInstLower { public: