projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Object: Prepend __imp_ when mangling a dllimport symbol in IRObjectFile.
[oota-llvm.git]
/
lib
/
Object
/
IRObjectFile.cpp
diff --git
a/lib/Object/IRObjectFile.cpp
b/lib/Object/IRObjectFile.cpp
index e89cb8ead36d08eca9f5336cbae008863fff2095..b3d5db85ed5283b82e3767955fcc2d66ecfdf0b3 100644
(file)
--- a/
lib/Object/IRObjectFile.cpp
+++ b/
lib/Object/IRObjectFile.cpp
@@
-198,6
+198,9
@@
std::error_code IRObjectFile::printSymbolName(raw_ostream &OS,
return std::error_code();
}
+ if (GV->hasDLLImportStorageClass())
+ OS << "__imp_";
+
if (Mang)
Mang->getNameWithPrefix(OS, GV, false);
else