mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 02:14:23 +00:00
Rename isString -> isExternalSymbol; getString -> getExternalSymbol since these work on externsym machine relocations.
llvm-svn: 58895
This commit is contained in:
parent
8dfc67205a
commit
fe6df6ae18
@ -234,9 +234,9 @@ public:
|
||||
return AddrType == isBB;
|
||||
}
|
||||
|
||||
/// isString - Return true if this is a constant string.
|
||||
/// isExternalSymbol - Return true if this is a constant string.
|
||||
///
|
||||
bool isString() const {
|
||||
bool isExternalSymbol() const {
|
||||
return AddrType == isExtSym;
|
||||
}
|
||||
|
||||
@ -287,8 +287,8 @@ public:
|
||||
|
||||
/// getString - If this is a string value, return the string reference.
|
||||
///
|
||||
const char *getString() const {
|
||||
assert(isString() && "This is not a string reference!");
|
||||
const char *getExternalSymbol() const {
|
||||
assert(isExternalSymbol() && "This is not an external symbol reference!");
|
||||
return Target.ExtSym;
|
||||
}
|
||||
|
||||
|
@ -885,9 +885,9 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
|
||||
MachineRelocation &MR = Relocations[i];
|
||||
void *ResultPtr = 0;
|
||||
if (!MR.letTargetResolve()) {
|
||||
if (MR.isString()) {
|
||||
ResultPtr = TheJIT->getPointerToNamedFunction(MR.getString());
|
||||
DOUT << "JIT: Map \'" << MR.getString() << "\' to ["
|
||||
if (MR.isExternalSymbol()) {
|
||||
ResultPtr = TheJIT->getPointerToNamedFunction(MR.getExternalSymbol());
|
||||
DOUT << "JIT: Map \'" << MR.getExternalSymbol() << "\' to ["
|
||||
<< ResultPtr << "]\n";
|
||||
|
||||
// If the target REALLY wants a stub for this function, emit it now.
|
||||
|
Loading…
x
Reference in New Issue
Block a user