2012-08-02 02:39:17 +08:00
|
|
|
//===-- X86coffmachinemoduleinfo.h - X86 COFF MMI Impl ----------*- C++ -*-===//
|
2009-09-20 14:45:52 +08: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-18 02:46:09 +08:00
|
|
|
#include "X86MachineFunctionInfo.h"
|
2009-09-20 14:45:52 +08:00
|
|
|
#include "llvm/CodeGen/MachineModuleInfo.h"
|
2010-05-09 03:54:22 +08:00
|
|
|
#include "llvm/ADT/DenseSet.h"
|
2009-09-20 14:45:52 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class X86MachineFunctionInfo;
|
|
|
|
class TargetData;
|
2010-02-12 23:28:40 +08:00
|
|
|
|
2009-09-20 14:45:52 +08:00
|
|
|
/// X86COFFMachineModuleInfo - This is a MachineModuleInfoImpl implementation
|
|
|
|
/// for X86 COFF targets.
|
|
|
|
class X86COFFMachineModuleInfo : public MachineModuleInfoImpl {
|
2010-05-09 03:54:22 +08:00
|
|
|
DenseSet<MCSymbol const *> Externals;
|
2009-09-20 14:45:52 +08:00
|
|
|
public:
|
2010-03-13 03:42:40 +08:00
|
|
|
X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
|
|
|
|
virtual ~X86COFFMachineModuleInfo();
|
2010-02-12 23:28:40 +08:00
|
|
|
|
2010-05-09 03:54:22 +08:00
|
|
|
void addExternalFunction(MCSymbol* Symbol) {
|
|
|
|
Externals.insert(Symbol);
|
2010-03-13 03:42:40 +08:00
|
|
|
}
|
2012-08-02 02:39:17 +08:00
|
|
|
|
2010-05-09 03:54:22 +08: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 14:45:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|