Make ELF OS ABI dependent on the OS from target triple.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Roman Divacky
2010-09-09 17:57:50 +00:00
parent 9ae4ca611b
commit 5baf79edc0
3 changed files with 28 additions and 15 deletions

View File

@@ -10,6 +10,7 @@
#ifndef LLVM_MC_ELFOBJECTWRITER_H
#define LLVM_MC_ELFOBJECTWRITER_H
#include "llvm/ADT/Triple.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
@@ -25,8 +26,8 @@ class ELFObjectWriter : public MCObjectWriter {
void *Impl;
public:
ELFObjectWriter(raw_ostream &OS, bool Is64Bit, bool IsLittleEndian = true,
bool HasRelocationAddend = true);
ELFObjectWriter(raw_ostream &OS, bool Is64Bit, Triple::OSType OSType,
bool IsLittleEndian = true, bool HasRelocationAddend = true);
virtual ~ELFObjectWriter();