1 //===-- llvm/CodeGen/X86COFFMachineModuleInfo.h -----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This is an MMI implementation for X86 COFF (windows) targets.
12 //===----------------------------------------------------------------------===//
14 #ifndef X86COFF_MACHINEMODULEINFO_H
15 #define X86COFF_MACHINEMODULEINFO_H
17 #include "llvm/CodeGen/MachineModuleInfo.h"
18 #include "llvm/ADT/StringSet.h"
19 #include "X86MachineFunctionInfo.h"
22 class X86MachineFunctionInfo;
25 /// X86COFFMachineModuleInfo - This is a MachineModuleInfoImpl implementation
26 /// for X86 COFF targets.
27 class X86COFFMachineModuleInfo : public MachineModuleInfoImpl {
28 StringSet<> CygMingStubs;
29 DenseMap<const Function*, unsigned> FnArgWords;
31 X86COFFMachineModuleInfo(const MachineModuleInfo &);
32 ~X86COFFMachineModuleInfo();
34 void DecorateCygMingName(MCSymbol* &Name, MCContext &Ctx,
35 const GlobalValue *GV, const TargetData &TD);
36 void DecorateCygMingName(SmallVectorImpl<char> &Name, const GlobalValue *GV,
37 const TargetData &TD);
39 void addExternalFunction(const StringRef& Name);
40 typedef StringSet<>::const_iterator stub_iterator;
41 stub_iterator stub_begin() const { return CygMingStubs.begin(); }
42 stub_iterator stub_end() const { return CygMingStubs.end(); }
47 } // end namespace llvm