File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Target/PowerPC/MCTargetDesc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -169,18 +169,18 @@ class PPCAsmBackend : public MCAsmBackend {
169
169
// If the target symbol has a local entry point we must not attempt
170
170
// to resolve the fixup directly. Emit a relocation and leave
171
171
// resolution of the final target address to the linker.
172
- if (const MCSymbolRefExpr *A = Target.getSymA ()) {
173
- if (const auto *S = dyn_cast<MCSymbolELF>(&A-> getSymbol () )) {
172
+ if (const auto *A = Target.getAddSym ()) {
173
+ if (const auto *S = dyn_cast<MCSymbolELF>(A )) {
174
174
// The "other" values are stored in the last 6 bits of the second
175
175
// byte. The traditional defines for STO values assume the full byte
176
176
// and thus the shift to pack it.
177
177
unsigned Other = S->getOther () << 2 ;
178
178
if ((Other & ELF::STO_PPC64_LOCAL_MASK) != 0 )
179
179
return true ;
180
- } else if (const auto *S = dyn_cast<MCSymbolXCOFF>(&A-> getSymbol () )) {
180
+ } else if (const auto *S = dyn_cast<MCSymbolXCOFF>(A )) {
181
181
return !Target.isAbsolute () && S->isExternal () &&
182
182
S->getStorageClass () == XCOFF::C_WEAKEXT;
183
- }
183
+ }
184
184
}
185
185
return false ;
186
186
}
You can’t perform that action at this time.
0 commit comments