2009-09-20 14:45:52 +08: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 09:10:05 +08:00
|
|
|
#include "X86MachineFunctionInfo.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 {
|
|
|
|
StringSet<> CygMingStubs;
|
|
|
|
public:
|
2010-03-13 03:42:40 +08:00
|
|
|
X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
|
|
|
|
virtual ~X86COFFMachineModuleInfo();
|
2010-02-12 23:28:40 +08:00
|
|
|
|
2010-03-13 03:42:40 +08:00
|
|
|
void addExternalFunction(StringRef Name) {
|
|
|
|
CygMingStubs.insert(Name);
|
|
|
|
}
|
|
|
|
|
2009-09-20 14:45:52 +08: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
|