[llvm] r240684 - We don't need the targets to read objects.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jun 25 13:20:19 PDT 2015
Author: rafael
Date: Thu Jun 25 15:20:19 2015
New Revision: 240684
URL: http://llvm.org/viewvc/llvm-project?rev=240684&view=rev
Log:
We don't need the targets to read objects.
Modified:
llvm/trunk/tools/llvm-readobj/CMakeLists.txt
llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp
Modified: llvm/trunk/tools/llvm-readobj/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/CMakeLists.txt?rev=240684&r1=240683&r2=240684&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-readobj/CMakeLists.txt Thu Jun 25 15:20:19 2015
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
Object
Support
)
Modified: llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp?rev=240684&r1=240683&r2=240684&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp Thu Jun 25 15:20:19 2015
@@ -380,9 +380,6 @@ int main(int argc, const char *argv[]) {
PrettyStackTraceProgram X(argc, argv);
llvm_shutdown_obj Y;
- // Initialize targets.
- llvm::InitializeAllTargetInfos();
-
// Register the target printer for --version.
cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
More information about the llvm-commits
mailing list