projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move more code back to 2.5 APIs.
[oota-llvm.git]
/
lib
/
Transforms
/
IPO
/
StripSymbols.cpp
diff --git
a/lib/Transforms/IPO/StripSymbols.cpp
b/lib/Transforms/IPO/StripSymbols.cpp
index f2b561da80a6743b856f0c1261378d4c76edf560..1bbda3cd22dba2989ecd4e6994ed73321dbc5336 100644
(file)
--- a/
lib/Transforms/IPO/StripSymbols.cpp
+++ b/
lib/Transforms/IPO/StripSymbols.cpp
@@
-232,7
+232,7
@@
bool StripDebugInfo(Module &M) {
if (!GV) continue;
if (!GV->use_empty() && llvmUsedValues.count(I) == 0) {
if (GV->getName().startswith("llvm.dbg")) {
- GV->replaceAllUsesWith(
M.getContext().getUndef
(GV->getType()));
+ GV->replaceAllUsesWith(
UndefValue::get
(GV->getType()));
}
}
}