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;
|
2010-02-12 15:28:40 +00:00
|
|
|
DenseMap<const Function*, unsigned> FnArgWords;
|
2009-09-20 06:45:52 +00:00
|
|
|
public:
|
|
|
|
X86COFFMachineModuleInfo(const MachineModuleInfo &);
|
|
|
|
~X86COFFMachineModuleInfo();
|
2010-02-12 15:28:40 +00:00
|
|
|
|
2010-01-18 00:59:24 +00:00
|
|
|
void DecorateCygMingName(MCSymbol* &Name, MCContext &Ctx,
|
2010-01-16 00:51:39 +00:00
|
|
|
const GlobalValue *GV, const TargetData &TD);
|
2009-09-20 06:45:52 +00:00
|
|
|
void DecorateCygMingName(SmallVectorImpl<char> &Name, const GlobalValue *GV,
|
|
|
|
const TargetData &TD);
|
|
|
|
|
2010-02-12 15:28:40 +00:00
|
|
|
void addExternalFunction(const StringRef& 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
|