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