[llvm] r207136 - Remove C++11ism (specializing a template in a surrounding namespace) to appease the buildbots.
Richard Smith
richard-llvm at metafoo.co.uk
Thu Apr 24 11:49:15 PDT 2014
Author: rsmith
Date: Thu Apr 24 13:49:15 2014
New Revision: 207136
URL: http://llvm.org/viewvc/llvm-project?rev=207136&view=rev
Log:
Remove C++11ism (specializing a template in a surrounding namespace) to appease the buildbots.
Modified:
llvm/trunk/lib/CodeGen/EdgeBundles.cpp
Modified: llvm/trunk/lib/CodeGen/EdgeBundles.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/EdgeBundles.cpp?rev=207136&r1=207135&r2=207136&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/EdgeBundles.cpp (original)
+++ llvm/trunk/lib/CodeGen/EdgeBundles.cpp Thu Apr 24 13:49:15 2014
@@ -70,10 +70,11 @@ bool EdgeBundles::runOnMachineFunction(M
}
/// 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_ostr
O << "}\n";
return O;
}
+}
/// view - Visualize the annotated bipartite CFG with Graphviz.
void EdgeBundles::view() const {
More information about the llvm-commits
mailing list