OSDN Git Service

Minor improvement to debug output for Function Importer (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 19 Apr 2016 09:21:30 +0000 (09:21 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 19 Apr 2016 09:21:30 +0000 (09:21 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266723 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionImport.cpp

index 91e3695..0c714df 100644 (file)
@@ -348,9 +348,9 @@ bool FunctionImporter::importFunctions(
         continue;
       auto GUID = GV.getGUID();
       auto Import = ImportGUIDs.count(GUID);
-      DEBUG(dbgs() << (Import ? "Is" : "Not") << " importing " << GUID << " "
-                   << GV.getName() << " from " << SrcModule->getSourceFileName()
-                   << "\n");
+      DEBUG(dbgs() << (Import ? "Is" : "Not") << " importing function " << GUID
+                   << " " << GV.getName() << " from "
+                   << SrcModule->getSourceFileName() << "\n");
       if (Import) {
         GV.materialize();
         GlobalsToImport.insert(&GV);
@@ -361,9 +361,9 @@ bool FunctionImporter::importFunctions(
         continue;
       auto GUID = GV.getGUID();
       auto Import = ImportGUIDs.count(GUID);
-      DEBUG(dbgs() << (Import ? "Is" : "Not") << " importing " << GUID << " "
-                   << GV.getName() << " from " << SrcModule->getSourceFileName()
-                   << "\n");
+      DEBUG(dbgs() << (Import ? "Is" : "Not") << " importing global " << GUID
+                   << " " << GV.getName() << " from "
+                   << SrcModule->getSourceFileName() << "\n");
       if (Import) {
         GV.materialize();
         GlobalsToImport.insert(&GV);
@@ -374,9 +374,9 @@ bool FunctionImporter::importFunctions(
         continue;
       auto GUID = GV.getGUID();
       auto Import = ImportGUIDs.count(GUID);
-      DEBUG(dbgs() << (Import ? "Is" : "Not") << " importing " << GUID << " "
-                   << GV.getName() << " from " << SrcModule->getSourceFileName()
-                   << "\n");
+      DEBUG(dbgs() << (Import ? "Is" : "Not") << " importing alias " << GUID
+                   << " " << GV.getName() << " from "
+                   << SrcModule->getSourceFileName() << "\n");
       if (Import) {
         // Alias can't point to "available_externally". However when we import
         // linkOnceODR the linkage does not change. So we import the alias