Remove C++11ism (specializing a template in a surrounding namespace) to appease the...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 Apr 2014 18:49:15 +0000 (18:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 Apr 2014 18:49:15 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207136 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/EdgeBundles.cpp

index 83d1517f9f73dbc12f6d89e7795241f74272c86d..534d476c28eefc6d42fd13323c80c00f7c3b9c2f 100644 (file)
@@ -70,10 +70,11 @@ bool EdgeBundles::runOnMachineFunction(MachineFunction &mf) {
 }
 
 /// Specialize WriteGraph, the standard implementation won't work.
+namespace llvm {
 template<>
-raw_ostream &llvm::WriteGraph<>(raw_ostream &O, const EdgeBundles &G,
-                                bool ShortNames,
-                                const Twine &Title) {
+raw_ostream &WriteGraph<>(raw_ostream &O, const EdgeBundles &G,
+                          bool ShortNames,
+                          const Twine &Title) {
   const MachineFunction *MF = G.getMachineFunction();
 
   O << "digraph {\n";
@@ -91,6 +92,7 @@ raw_ostream &llvm::WriteGraph<>(raw_ostream &O, const EdgeBundles &G,
   O << "}\n";
   return O;
 }
+}
 
 /// view - Visualize the annotated bipartite CFG with Graphviz.
 void EdgeBundles::view() const {