2009-09-20 06:45:52 +00:00
|
|
|
//===-- llvm/CodeGen/X86COFFMachineModuleInfo.h -----------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
|
|
|
#include "llvm/CodeGen/MachineModuleInfo.h"
|
|
|
|
#include "llvm/ADT/StringSet.h"
|
2009-12-03 01:10:05 +00:00
|
|
|
#include "X86MachineFunctionInfo.h"
|
2009-09-20 06:45:52 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class X86MachineFunctionInfo;
|
|
|
|
class TargetData;
|
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 {
|
|
|
|
StringSet<> CygMingStubs;
|
|
|
|
public:
|
2010-03-12 19:42:40 +00:00
|
|
|
X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
|
|
|
|
virtual ~X86COFFMachineModuleInfo();
|
2010-02-12 15:28:40 +00:00
|
|
|
|
2010-03-12 19:42:40 +00:00
|
|
|
void addExternalFunction(StringRef Name) {
|
|
|
|
CygMingStubs.insert(Name);
|
|
|
|
}
|
|
|
|
|
2009-09-20 06:45:52 +00:00
|
|
|
typedef StringSet<>::const_iterator stub_iterator;
|
|
|
|
stub_iterator stub_begin() const { return CygMingStubs.begin(); }
|
|
|
|
stub_iterator stub_end() const { return CygMingStubs.end(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|