diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/Address.h')
-rw-r--r-- | contrib/llvm/tools/clang/lib/CodeGen/Address.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/contrib/llvm/tools/clang/lib/CodeGen/Address.h b/contrib/llvm/tools/clang/lib/CodeGen/Address.h index 9d145fa..3343080 100644 --- a/contrib/llvm/tools/clang/lib/CodeGen/Address.h +++ b/contrib/llvm/tools/clang/lib/CodeGen/Address.h @@ -104,23 +104,15 @@ public: }; } -} -namespace llvm { - // Present a minimal LLVM-like casting interface. - template <class U> inline U cast(clang::CodeGen::Address addr) { - return U::castImpl(addr); - } - template <class U> inline bool isa(clang::CodeGen::Address addr) { - return U::isaImpl(addr); - } +// Present a minimal LLVM-like casting interface. +template <class U> inline U cast(CodeGen::Address addr) { + return U::castImpl(addr); +} +template <class U> inline bool isa(CodeGen::Address addr) { + return U::isaImpl(addr); } -namespace clang { - // Make our custom isa and cast available in namespace clang, to mirror - // what we do for LLVM's versions in Basic/LLVM.h. - using llvm::isa; - using llvm::cast; } #endif |