[llvm-commits] CVS: llvm/include/llvm/LinkTimeOptimizer.h
Devang Patel
dpatel at apple.com
Mon Aug 14 15:36:33 PDT 2006
Changes in directory llvm/include/llvm:
LinkTimeOptimizer.h updated: 1.2 -> 1.3
---
Log message:
Use mangler, instead of addUnderscore(), to get mangled name.
Now, LLVMSymbol keeps symbol original name and mangled name.
---
Diffs of the changes: (+8 -2)
LinkTimeOptimizer.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/LinkTimeOptimizer.h
diff -u llvm/include/llvm/LinkTimeOptimizer.h:1.2 llvm/include/llvm/LinkTimeOptimizer.h:1.3
--- llvm/include/llvm/LinkTimeOptimizer.h:1.2 Thu Aug 3 11:34:35 2006
+++ llvm/include/llvm/LinkTimeOptimizer.h Mon Aug 14 17:36:16 2006
@@ -55,11 +55,17 @@
LTOLinkageTypes getLinkage() const { return linkage; }
void mayBeNotUsed();
- LLVMSymbol (enum LTOLinkageTypes lt, GlobalValue *g) : linkage(lt), gv(g) {}
+ LLVMSymbol (enum LTOLinkageTypes lt, GlobalValue *g, std::string n,
+ std::string m) : linkage(lt), gv(g), name(n), mangledName(m) {}
+
+ const char *getName() { return name.c_str(); }
+ const char *getMangledName() { return mangledName.c_str(); }
private:
enum LTOLinkageTypes linkage;
GlobalValue *gv;
+ std::string name;
+ std::string mangledName;
};
class string_compare {
@@ -79,7 +85,7 @@
enum LTOStatus readLLVMObjectFile(const std::string &InputFilename,
NameToSymbolMap &symbols,
- std::set<const char*> &references);
+ std::set<std::string> &references);
enum LTOStatus optimizeModules(const std::string &OutputFilename,
std::vector<const char*> &exportList);
More information about the llvm-commits
mailing list