[llvm] Move a lot of symbol code to use the symbol string pool (PR #115796)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 22:14:57 PST 2024
================
@@ -230,8 +237,7 @@ class COFFLinkGraphLowering_x86_64 {
}
private:
- static StringRef getImageBaseSymbolName() { return "__ImageBase"; }
-
+ orc::SymbolStringPtr getImageBaseSymbolName() { return this->imageBaseName; }
----------------
lhames wrote:
Return type should be `const orc::SymbolStringPtr &` to avoid copies.
https://github.com/llvm/llvm-project/pull/115796
More information about the llvm-commits
mailing list