2012-02-19 03:03:36 +01:00
|
|
|
//===-- X86COFFMachineModuleInfo.h - X86 COFF MMI Impl ----------*- C++ -*-===//
|
2009-09-20 08:45:52 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This is an MMI implementation for X86 COFF (windows) targets.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef X86COFF_MACHINEMODULEINFO_H
|
|
|
|
#define X86COFF_MACHINEMODULEINFO_H
|
|
|
|
|
2012-03-17 19:46:09 +01:00
|
|
|
#include "X86MachineFunctionInfo.h"
|
2009-09-20 08:45:52 +02:00
|
|
|
#include "llvm/CodeGen/MachineModuleInfo.h"
|
2010-05-08 21:54:22 +02:00
|
|
|
#include "llvm/ADT/DenseSet.h"
|
2009-09-20 08:45:52 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class X86MachineFunctionInfo;
|
|
|
|
class TargetData;
|
2010-02-12 16:28:40 +01:00
|
|
|
|
2009-09-20 08:45:52 +02:00
|
|
|
/// X86COFFMachineModuleInfo - This is a MachineModuleInfoImpl implementation
|
|
|
|
/// for X86 COFF targets.
|
|
|
|
class X86COFFMachineModuleInfo : public MachineModuleInfoImpl {
|
2010-05-08 21:54:22 +02:00
|
|
|
DenseSet<MCSymbol const *> Externals;
|
2009-09-20 08:45:52 +02:00
|
|
|
public:
|
2010-03-12 20:42:40 +01:00
|
|
|
X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
|
|
|
|
virtual ~X86COFFMachineModuleInfo();
|
2010-02-12 16:28:40 +01:00
|
|
|
|
2010-05-08 21:54:22 +02:00
|
|
|
void addExternalFunction(MCSymbol* Symbol) {
|
|
|
|
Externals.insert(Symbol);
|
2010-03-12 20:42:40 +01:00
|
|
|
}
|
|
|
|
|
2010-05-08 21:54:22 +02:00
|
|
|
typedef DenseSet<MCSymbol const *>::const_iterator externals_iterator;
|
|
|
|
externals_iterator externals_begin() const { return Externals.begin(); }
|
|
|
|
externals_iterator externals_end() const { return Externals.end(); }
|
2009-09-20 08:45:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|