summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GCMetadata.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2018-11-12 22:03:53 +0000
committerPhilip Reames <listmail@philipreames.com>2018-11-12 22:03:53 +0000
commite44a55dc98e0a311cf1f169681f21ca000ef39f8 (patch)
treeb397ea82b1eb646bea83f92028e344c9ad5a80db /llvm/lib/CodeGen/GCMetadata.cpp
parentceab2329b64dedee972d620d3e8bd68e02e6c6e4 (diff)
downloadbcm5719-llvm-e44a55dc98e0a311cf1f169681f21ca000ef39f8.tar.gz
bcm5719-llvm-e44a55dc98e0a311cf1f169681f21ca000ef39f8.zip
[GC][NFC] Simplify code now that we only have one safepoint kind
This is the NFC follow up to exploit the semantic simplification from r346701 llvm-svn: 346712
Diffstat (limited to 'llvm/lib/CodeGen/GCMetadata.cpp')
-rw-r--r--llvm/lib/CodeGen/GCMetadata.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/GCMetadata.cpp b/llvm/lib/CodeGen/GCMetadata.cpp
index 4bf5335f9d7..1c80556dfef 100644
--- a/llvm/lib/CodeGen/GCMetadata.cpp
+++ b/llvm/lib/CodeGen/GCMetadata.cpp
@@ -103,14 +103,6 @@ void Printer::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<GCModuleInfo>();
}
-static const char *DescKind(GC::PointKind Kind) {
- switch (Kind) {
- case GC::PostCall:
- return "post-call";
- }
- llvm_unreachable("Invalid point kind");
-}
-
bool Printer::runOnFunction(Function &F) {
if (F.hasGC())
return false;
@@ -127,7 +119,7 @@ bool Printer::runOnFunction(Function &F) {
for (GCFunctionInfo::iterator PI = FD->begin(), PE = FD->end(); PI != PE;
++PI) {
- OS << "\t" << PI->Label->getName() << ": " << DescKind(PI->Kind)
+ OS << "\t" << PI->Label->getName() << ": " << "post-call"
<< ", live = {";
for (GCFunctionInfo::live_iterator RI = FD->live_begin(PI),
OpenPOWER on IntegriCloud