diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-24 18:49:15 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-24 18:49:15 +0000 |
commit | a4b7cfd64f9ef026ed6a3f9271897df6bce45b7a (patch) | |
tree | e42acea002e9bd77f08e350dd559e79feb8463f4 /llvm/lib/CodeGen/EdgeBundles.cpp | |
parent | f4a701092e6e11fe5c6f46589a6bed818f817d40 (diff) | |
download | bcm5719-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.cpp | 8 |
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 { |