mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 17:07:06 +00:00
4dd162f394
This should fix alot of problems we saw so far, e.g. PRs 5851 & 2936 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95980 91177308-0d34-0410-b5e6-96231b3b80d8
50 lines
1.6 KiB
C++
50 lines
1.6 KiB
C++
//===-- 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"
|
|
#include "X86MachineFunctionInfo.h"
|
|
|
|
namespace llvm {
|
|
class X86MachineFunctionInfo;
|
|
class TargetData;
|
|
|
|
/// X86COFFMachineModuleInfo - This is a MachineModuleInfoImpl implementation
|
|
/// for X86 COFF targets.
|
|
class X86COFFMachineModuleInfo : public MachineModuleInfoImpl {
|
|
StringSet<> CygMingStubs;
|
|
DenseMap<const Function*, unsigned> FnArgWords;
|
|
public:
|
|
X86COFFMachineModuleInfo(const MachineModuleInfo &);
|
|
~X86COFFMachineModuleInfo();
|
|
|
|
void DecorateCygMingName(MCSymbol* &Name, MCContext &Ctx,
|
|
const GlobalValue *GV, const TargetData &TD);
|
|
void DecorateCygMingName(SmallVectorImpl<char> &Name, const GlobalValue *GV,
|
|
const TargetData &TD);
|
|
|
|
void addExternalFunction(const StringRef& Name);
|
|
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
|