diff options
| author | 2019-06-23 21:36:31 +0000 | |
|---|---|---|
| committer | 2019-06-23 21:36:31 +0000 | |
| commit | 23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch) | |
| tree | f7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/lib/CodeGen/GCMetadata.cpp | |
| parent | sort previous; ok deraadt (diff) | |
| download | wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip | |
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/CodeGen/GCMetadata.cpp')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/GCMetadata.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gnu/llvm/lib/CodeGen/GCMetadata.cpp b/gnu/llvm/lib/CodeGen/GCMetadata.cpp index fe3d2965794..1c80556dfef 100644 --- a/gnu/llvm/lib/CodeGen/GCMetadata.cpp +++ b/gnu/llvm/lib/CodeGen/GCMetadata.cpp @@ -103,16 +103,6 @@ void Printer::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<GCModuleInfo>(); } -static const char *DescKind(GC::PointKind Kind) { - switch (Kind) { - case GC::PreCall: - return "pre-call"; - case GC::PostCall: - return "post-call"; - } - llvm_unreachable("Invalid point kind"); -} - bool Printer::runOnFunction(Function &F) { if (F.hasGC()) return false; @@ -129,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), |
