diff options
Diffstat (limited to 'contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp')
| -rw-r--r-- | contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp b/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp index 1f38a8c947e7..6d591ca964a6 100644 --- a/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp +++ b/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp @@ -7,9 +7,10 @@  //  //===----------------------------------------------------------------------===// -#include "MCTargetDesc/PPCMCTargetDesc.h"  #include "MCTargetDesc/PPCFixupKinds.h" +#include "MCTargetDesc/PPCMCTargetDesc.h"  #include "llvm/ADT/Twine.h" +#include "llvm/BinaryFormat/MachO.h"  #include "llvm/MC/MCAsmLayout.h"  #include "llvm/MC/MCAssembler.h"  #include "llvm/MC/MCContext.h" @@ -18,7 +19,6 @@  #include "llvm/MC/MCValue.h"  #include "llvm/Support/ErrorHandling.h"  #include "llvm/Support/Format.h" -#include "llvm/Support/MachO.h"  using namespace llvm; @@ -151,7 +151,7 @@ static void makeRelocationInfo(MachO::any_relocation_info &MRE,    // The bitfield offsets that work (as determined by trial-and-error)    // are different than what is documented in the mach-o manuals.    // This appears to be an endianness issue; reversing the order of the -  // documented bitfields in <llvm/Support/MachO.h> fixes this (but +  // documented bitfields in <llvm/BinaryFormat/MachO.h> fixes this (but    // breaks x86/ARM assembly).    MRE.r_word1 = ((Index << 8) |    // was << 0                   (IsPCRel << 7) |  // was << 24 @@ -222,7 +222,7 @@ bool PPCMachObjectWriter::recordScatteredRelocation(        report_fatal_error("symbol '" + B->getSymbol().getName() +                           "' can not be undefined in a subtraction expression"); -    // FIXME: is Type correct? see include/llvm/Support/MachO.h +    // FIXME: is Type correct? see include/llvm/BinaryFormat/MachO.h      Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout);      FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent());    }  | 
