PreferredEHDataFormat is always call with data and global, but this whole

thing is #if0'd out anyway.  Just simplify the code by reducing the interface.
Not deleting this is essential for Bill's continuing happiness.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-07-31 21:39:55 +00:00
parent 5d0bf1bc6f
commit 7a01e95915
5 changed files with 21 additions and 61 deletions

View File

@@ -24,15 +24,6 @@ namespace llvm {
template <typename T> class SmallVectorImpl;
class TargetMachine;
// DWARF encoding query type
namespace DwarfEncoding {
enum Target {
Data = 0,
CodeLabels = 1,
Functions = 2
};
}
/// TargetAsmInfo - This class is intended to be used as a base class for asm
/// properties and features specific to the target.
class TargetAsmInfo {
@@ -429,11 +420,8 @@ namespace llvm {
virtual unsigned getInlineAsmLength(const char *Str) const;
/// PreferredEHDataFormat - This hook allows the target to select data
/// format used for encoding pointers in exception handling data. Reason is
/// 0 for data, 1 for code labels, 2 for function pointers. Global is true
/// if the symbol can be relocated.
virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
bool Global) const;
/// format used for encoding pointers in exception handling data.
virtual unsigned PreferredEHDataFormat() const;
/// getSLEB128Size - Compute the number of bytes required for a signed