aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-03-07 00:18:18 +0000
committerAndrew Trick <atrick@apple.com>2012-03-07 00:18:18 +0000
commit8ceaa660bfec72249976c1f411db7f40cbc438bb (patch)
treeb3fb4ac73cc9fd6509eccd826db5333674e4564e /include/llvm/CodeGen
parentacddd4963d2f3b5fd94ab872b4fd393b34c80e5f (diff)
downloadexternal_llvm-8ceaa660bfec72249976c1f411db7f40cbc438bb.zip
external_llvm-8ceaa660bfec72249976c1f411db7f40cbc438bb.tar.gz
external_llvm-8ceaa660bfec72249976c1f411db7f40cbc438bb.tar.bz2
Added MachineBasicBlock::getFullName() to standardize/factor codegen diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index 576ce94..ef9c0c2 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -117,6 +117,10 @@ public:
/// "(null)".
StringRef getName() const;
+ /// getFullName - Return a formatted string to identify this block and its
+ /// parent function.
+ std::string getFullName() const;
+
/// hasAddressTaken - Test whether this block is potentially the target
/// of an indirect branch.
bool hasAddressTaken() const { return AddressTaken; }