summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/LTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-07 19:05:14 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-07 19:05:14 +0000
commitdc5a507c92bdf9ef4687fcf8dc78531f0d374955 (patch)
tree870e879b56eb4e25b687977a7d828eb2790dead1 /llvm/lib/LTO/LTOCodeGenerator.cpp
parent89c91914471ac85026855cefb5025292adba79b2 (diff)
downloadbcm5719-llvm-dc5a507c92bdf9ef4687fcf8dc78531f0d374955.tar.gz
bcm5719-llvm-dc5a507c92bdf9ef4687fcf8dc78531f0d374955.zip
Recommit "Use StringRef in LTOModule implementation (NFC)""
This reverts commit r283456 and reapply r282997, with explicitly zeroing the struct member to workaround a bug in MSVC2013 with zero-initialization: https://connect.microsoft.com/VisualStudio/feedback/details/802160 llvm-svn: 283581
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 1ade0fb7530..81fb58a4e0a 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -131,7 +131,7 @@ void LTOCodeGenerator::initializeLTOPasses() {
}
void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) {
- const std::vector<const char *> &undefs = Mod->getAsmUndefinedRefs();
+ const std::vector<StringRef> &undefs = Mod->getAsmUndefinedRefs();
for (int i = 0, e = undefs.size(); i != e; ++i)
AsmUndefinedRefs[undefs[i]] = 1;
}
OpenPOWER on IntegriCloud