diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 19:08:48 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 19:08:48 +0000 |
commit | 179821ac1f282ef6f8d24d5ea346028aee8ba4c7 (patch) | |
tree | 25a5861add458a1bafe0a084a2cdc08827ffc48e /include | |
parent | c76c59840b7a4491afdcd2f35483f8d6e5ab533a (diff) |
Remove the instruction fragment to data fragment lowering since it was causing
freed data to be read. I will open a bug to track it being reenabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmLayout.h | 10 | ||||
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 3 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmBackend.h | 3 |
3 files changed, 4 insertions, 12 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h index cad7664c3a5..ce9692dcaff 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -58,16 +58,6 @@ public: /// fragments size should have already been updated. void Invalidate(MCFragment *F); - /// \brief Update the layout, replacing Src with Dst. The contents - /// of Src and Dst are not modified, and must be copied by the caller. - /// Src will be removed from the layout, but not deleted. - void ReplaceFragment(MCFragment *Src, MCFragment *Dst); - - /// \brief Update the layout to coalesce Src into Dst. The contents - /// of Src and Dst are not modified, and must be coalesced by the caller. - /// Src will be removed from the layout, but not deleted. - void CoalesceFragments(MCFragment *Src, MCFragment *Dst); - /// \brief Perform a full layout. void LayoutFile(); diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 16c527ffc16..ba894369819 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -735,6 +735,9 @@ private: /// FinishLayout - Finalize a layout, including fragment lowering. void FinishLayout(MCAsmLayout &Layout); + uint64_t HandleFixup(MCObjectWriter &Writer, const MCAsmLayout &Layout, + MCFragment &F, const MCFixup &Fixup); + public: /// Find the symbol which defines the atom containing the given symbol, or /// null if there is no such symbol. diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h index 6faedf42568..ba344726906 100644 --- a/include/llvm/Target/TargetAsmBackend.h +++ b/include/llvm/Target/TargetAsmBackend.h @@ -13,7 +13,6 @@ #include "llvm/Support/DataTypes.h" namespace llvm { -class MCDataFragment; class MCFixup; class MCInst; class MCObjectFormat; @@ -87,7 +86,7 @@ public: /// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided /// data fragment, at the offset specified by the fixup and following the /// fixup kind as appropriate. - virtual void ApplyFixup(const MCFixup &Fixup, MCDataFragment &Fragment, + virtual void ApplyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, uint64_t Value) const = 0; /// MayNeedRelaxation - Check whether the given instruction may need |