aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/NVPTX
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-23 17:10:37 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-23 17:10:37 +0000
commit5c35290fa35ae234fed02496404cb0fc37e1c8a5 (patch)
tree1191d8c52504e4ad37097b44b0c850fe81cd36ef /lib/Target/NVPTX
parente0b59774cba9eb89ffba114635f3a1fa075910b1 (diff)
downloadexternal_llvm-5c35290fa35ae234fed02496404cb0fc37e1c8a5.zip
external_llvm-5c35290fa35ae234fed02496404cb0fc37e1c8a5.tar.gz
external_llvm-5c35290fa35ae234fed02496404cb0fc37e1c8a5.tar.bz2
Move passes from namespace llvm into anonymous namespaces. Sort includes while there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX')
-rw-r--r--lib/Target/NVPTX/NVPTXTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/NVPTX/NVPTXTargetMachine.cpp b/lib/Target/NVPTX/NVPTXTargetMachine.cpp
index 507fcb5..5b8ea1e 100644
--- a/lib/Target/NVPTX/NVPTXTargetMachine.cpp
+++ b/lib/Target/NVPTX/NVPTXTargetMachine.cpp
@@ -94,7 +94,7 @@ NVPTXTargetMachine64::NVPTXTargetMachine64(
CodeGenOpt::Level OL)
: NVPTXTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, true) {}
-namespace llvm {
+namespace {
class NVPTXPassConfig : public TargetPassConfig {
public:
NVPTXPassConfig(NVPTXTargetMachine *TM, PassManagerBase &PM)
@@ -108,7 +108,7 @@ public:
virtual bool addInstSelector();
virtual bool addPreRegAlloc();
};
-}
+} // end anonymous namespace
TargetPassConfig *NVPTXTargetMachine::createPassConfig(PassManagerBase &PM) {
NVPTXPassConfig *PassConfig = new NVPTXPassConfig(this, PM);