diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-02-16 09:30:23 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-02-16 09:30:23 +0000 | 
| commit | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (patch) | |
| tree | 4cfca640904d1896e25032757a61f8959c066919 /include/llvm/CodeGen/MachineRelocation.h | |
| parent | 989df958a10f0beb90b89ccadd8351cbe51d90b1 (diff) | |
Notes
Diffstat (limited to 'include/llvm/CodeGen/MachineRelocation.h')
| -rw-r--r-- | include/llvm/CodeGen/MachineRelocation.h | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineRelocation.h b/include/llvm/CodeGen/MachineRelocation.h index 1c15fab532d4..c316785dd112 100644 --- a/include/llvm/CodeGen/MachineRelocation.h +++ b/include/llvm/CodeGen/MachineRelocation.h @@ -138,14 +138,15 @@ public:    ///    static MachineRelocation getExtSym(uintptr_t offset, unsigned RelocationType,                                        const char *ES, intptr_t cst = 0, -                                     bool GOTrelative = 0) { +                                     bool GOTrelative = 0, +                                     bool NeedStub = true) {      assert((RelocationType & ~63) == 0 && "Relocation type too large!");      MachineRelocation Result;      Result.Offset = offset;      Result.ConstantVal = cst;      Result.TargetReloType = RelocationType;      Result.AddrType = isExtSym; -    Result.MayNeedFarStub = true; +    Result.MayNeedFarStub = NeedStub;      Result.GOTRelative = GOTrelative;      Result.TargetResolve = false;      Result.Target.ExtSym = ES;  | 
