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
This commit is contained in:
Rafael Espindola
2010-12-06 19:08:48 +00:00
parent c76c59840b
commit 179821ac1f
8 changed files with 60 additions and 128 deletions
-10
View File
@@ -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();
+3
View File
@@ -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.
+1 -2
View File
@@ -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