summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/EdgeBundles.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-04-24 18:49:15 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-04-24 18:49:15 +0000
commita4b7cfd64f9ef026ed6a3f9271897df6bce45b7a (patch)
treee42acea002e9bd77f08e350dd559e79feb8463f4 /llvm/lib/CodeGen/EdgeBundles.cpp
parentf4a701092e6e11fe5c6f46589a6bed818f817d40 (diff)
downloadbcm5719-llvm-a4b7cfd64f9ef026ed6a3f9271897df6bce45b7a.tar.gz
bcm5719-llvm-a4b7cfd64f9ef026ed6a3f9271897df6bce45b7a.zip
Remove C++11ism (specializing a template in a surrounding namespace) to appease the buildbots.
llvm-svn: 207136
Diffstat (limited to 'llvm/lib/CodeGen/EdgeBundles.cpp')
-rw-r--r--llvm/lib/CodeGen/EdgeBundles.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/EdgeBundles.cpp b/llvm/lib/CodeGen/EdgeBundles.cpp
index 83d1517f9f7..534d476c28e 100644
--- a/llvm/lib/CodeGen/EdgeBundles.cpp
+++ b/llvm/lib/CodeGen/EdgeBundles.cpp
@@ -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 {
OpenPOWER on IntegriCloud