projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Move conversion of [SU]ADDO from DAG combiner into legalizer.
[oota-llvm.git]
/
lib
/
CodeGen
/
MachOWriter.h
diff --git
a/lib/CodeGen/MachOWriter.h
b/lib/CodeGen/MachOWriter.h
index d4c146d3bfe4ec9665f5445053b10961429342c3..e2b6fa8dd4d9373b5eaedc1619e04ea7ec56fbc7 100644
(file)
--- a/
lib/CodeGen/MachOWriter.h
+++ b/
lib/CodeGen/MachOWriter.h
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by Nate Begeman and is distributed under th
e
-//
University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Sourc
e
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-21,6
+21,7
@@
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachOWriterInfo.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachOWriterInfo.h"
+#include <map>
namespace llvm {
class GlobalVariable;
namespace llvm {
class GlobalVariable;
@@
-28,6
+29,7
@@
namespace llvm {
class MachineCodeEmitter;
class MachOCodeEmitter;
class OutputBuffer;
class MachineCodeEmitter;
class MachOCodeEmitter;
class OutputBuffer;
+ class raw_ostream;
/// MachOSym - This struct contains information about each symbol that is
/// added to logical symbol table for the module. This is eventually
/// MachOSym - This struct contains information about each symbol that is
/// added to logical symbol table for the module. This is eventually
@@
-84,12
+86,12
@@
namespace llvm {
class MachOWriter : public MachineFunctionPass {
friend class MachOCodeEmitter;
public:
class MachOWriter : public MachineFunctionPass {
friend class MachOCodeEmitter;
public:
- static c
onst int
ID;
+ static c
har
ID;
MachineCodeEmitter &getMachineCodeEmitter() const {
return *(MachineCodeEmitter*)MCE;
}
MachineCodeEmitter &getMachineCodeEmitter() const {
return *(MachineCodeEmitter*)MCE;
}
- MachOWriter(
std::
ostream &O, TargetMachine &TM);
+ MachOWriter(
raw_
ostream &O, TargetMachine &TM);
virtual ~MachOWriter();
virtual const char *getPassName() const {
virtual ~MachOWriter();
virtual const char *getPassName() const {
@@
-100,7
+102,7
@@
namespace llvm {
protected:
/// Output stream to send the resultant object file to.
///
protected:
/// Output stream to send the resultant object file to.
///
-
std::
ostream &O;
+
raw_
ostream &O;
/// Target machine description.
///
/// Target machine description.
///
@@
-466,7
+468,7
@@
namespace llvm {
const Type *Ty = C->getType();
if (Ty->isPrimitiveType() || Ty->isInteger()) {
const Type *Ty = C->getType();
if (Ty->isPrimitiveType() || Ty->isInteger()) {
- unsigned Size = TM.getTargetData()->getTypeSize(Ty);
+ unsigned Size = TM.getTargetData()->get
ABI
TypeSize(Ty);
switch(Size) {
default: break; // Fall through to __TEXT,__const
case 4:
switch(Size) {
default: break; // Fall through to __TEXT,__const
case 4: