diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-23 17:10:37 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-23 17:10:37 +0000 |
commit | 5c35290fa35ae234fed02496404cb0fc37e1c8a5 (patch) | |
tree | 1191d8c52504e4ad37097b44b0c850fe81cd36ef /lib/Target/NVPTX | |
parent | e0b59774cba9eb89ffba114635f3a1fa075910b1 (diff) | |
download | external_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.cpp | 4 |
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); |