diff options
| author | Teresa Johnson <tejohnson@google.com> | 2016-03-29 14:49:26 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2016-03-29 14:49:26 +0000 |
| commit | efeae0e210c3f44d74d23cc929de9d1a8290f92b (patch) | |
| tree | 8255857993fd702f0b809778dd6cb87be5cb692f /llvm/lib | |
| parent | 6315e7f000bc1ca731b84b3cdedfd899738d780e (diff) | |
| download | bcm5719-llvm-efeae0e210c3f44d74d23cc929de9d1a8290f92b.tar.gz bcm5719-llvm-efeae0e210c3f44d74d23cc929de9d1a8290f92b.zip | |
[ThinLTO] Use new GlobalValue::getGUID helper (NFC)
This was already being used for functions and aliases, was missed when
handling global variables.
llvm-svn: 264734
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index a99739c9ae8..255a5582745 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -342,8 +342,7 @@ bool FunctionImporter::importFunctions( for (auto &GV : SrcModule->globals()) { if (!GV.hasName()) continue; - auto GUID = Function::getGUID(Function::getGlobalIdentifier( - GV.getName(), GV.getLinkage(), SrcModule->getModuleIdentifier())); + auto GUID = GV.getGUID(); if (ImportGUIDs.count(GUID)) { GV.materialize(); GlobalsToImport.insert(&GV); |

