OSDN Git Service

Print the dependent libraries when dumping bytecode.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 11 Sep 2004 04:14:07 +0000 (04:14 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 11 Sep 2004 04:14:07 +0000 (04:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16275 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Analyzer.cpp

index adaaa7c..73f2e4e 100644 (file)
@@ -224,6 +224,8 @@ public:
   virtual void handleDependentLibrary(const std::string& libName) {
     bca.numLibraries++;
     bca.libSize += libName.size() + (libName.size() < 128 ? 1 : 2);
+    if (os)
+      *os << "      Library: '" << libName << "'\n";
   }
 
   virtual void handleModuleGlobalsEnd() {