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 | d24fc958e84be863f0b74adfb3adc3529ea4ddff (patch) | |
tree | 2609501f47c829bf9153f41b41020349803b5ef8 /lib/CodeGen/EdgeBundles.cpp | |
parent | 807a3c283023cd2b0767a97b5602e232b69b281b (diff) | |
download | llvm-d24fc958e84be863f0b74adfb3adc3529ea4ddff.tar.gz llvm-d24fc958e84be863f0b74adfb3adc3529ea4ddff.tar.bz2 llvm-d24fc958e84be863f0b74adfb3adc3529ea4ddff.tar.xz |
Remove C++11ism (specializing a template in a surrounding namespace) to appease the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/EdgeBundles.cpp')
-rw-r--r-- | lib/CodeGen/EdgeBundles.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/EdgeBundles.cpp b/lib/CodeGen/EdgeBundles.cpp index 83d1517f9f..534d476c28 100644 --- a/lib/CodeGen/EdgeBundles.cpp +++ b/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 { |