[llvm] r259266 - [llvm-nm] Add a comment to explain why we initialize MC.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 15:38:08 PST 2016


Author: davide
Date: Fri Jan 29 17:38:05 2016
New Revision: 259266

URL: http://llvm.org/viewvc/llvm-project?rev=259266&view=rev
Log:
[llvm-nm] Add a comment to explain why we initialize MC.

Modified:
    llvm/trunk/tools/llvm-nm/llvm-nm.cpp

Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=259266&r1=259265&r2=259266&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Fri Jan 29 17:38:05 2016
@@ -1255,6 +1255,7 @@ int main(int argc, char **argv) {
   if (error(sys::ChangeStdinToBinary()))
     return 1;
 
+  // These calls are needed so that we can read bitcode correctly.
   llvm::InitializeAllTargetInfos();
   llvm::InitializeAllTargetMCs();
   llvm::InitializeAllAsmParsers();




More information about the llvm-commits mailing list