[llvm] [SystemZ] Handle indirect symbols (PR #180815)
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 09:16:24 PST 2026
================
@@ -47,12 +53,25 @@ class MCSymbolGOFF : public MCSymbol {
bool isExternal() const { return IsExternal; }
void setExternal(bool Value) const { IsExternal = Value; }
+ bool hasExternalName() const { return !ExternalName.empty(); }
+ void setExternalName(StringRef Name) { ExternalName = Name; }
+ StringRef getExternalName() const { return ExternalName; }
+
+ StringRef getNameInObjectFile() const {
+ return hasExternalName() ? getExternalName() : getName();
+ }
----------------
uweigand wrote:
I don't think we need two separate accessor routines here. Can't `getExternalName` itself have this fallback?
https://github.com/llvm/llvm-project/pull/180815
More information about the llvm-commits
mailing list