[llvm] r332174 - llc: don't call llvm_shutdown twice
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Sat May 12 12:38:44 PDT 2018
Author: jfb
Date: Sat May 12 12:38:44 2018
New Revision: 332174
URL: http://llvm.org/viewvc/llvm-project?rev=332174&view=rev
Log:
llc: don't call llvm_shutdown twice
Summary:
InitLLVM already calls llvm_shutdown, but llc registers for shutdown
with llvm_shutdown_obj so it gets called twice. It's not hurting anything, but
it's also not useful, so don't do it.
Reviewers: ruiu
Subscribers: aheejin, llvm-commits
Differential Revision: https://reviews.llvm.org/D46788
Modified:
llvm/trunk/tools/llc/llc.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=332174&r1=332173&r2=332174&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Sat May 12 12:38:44 2018
@@ -274,7 +274,6 @@ int main(int argc, char **argv) {
EnableDebugBuffering = true;
LLVMContext Context;
- llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
// Initialize targets first, so that --version shows registered targets.
InitializeAllTargets();
More information about the llvm-commits
mailing list