Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-22 20:48:53 +00:00
parent 9c52affd37
commit af76e592c7
120 changed files with 446 additions and 445 deletions

View File

@@ -16,7 +16,7 @@
#include "XCore.h"
#include "XCoreInstrInfo.h"
#include "XCoreSubtarget.h"
#include "XCoreTargetAsmInfo.h"
#include "XCoreMCAsmInfo.h"
#include "XCoreTargetMachine.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
@@ -56,7 +56,7 @@ namespace {
const XCoreSubtarget &Subtarget;
public:
explicit XCoreAsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
const TargetAsmInfo *T, bool V)
const MCAsmInfo *T, bool V)
: AsmPrinter(O, TM, T, V), DW(0),
Subtarget(TM.getSubtarget<XCoreSubtarget>()) {}

View File

@@ -26,7 +26,7 @@ MCSectionXCore::Create(const StringRef &Section, unsigned Type,
/// PrintTargetSpecificSectionFlags - This handles the XCore-specific cp/dp
/// section flags.
void MCSectionXCore::PrintTargetSpecificSectionFlags(const TargetAsmInfo &TAI,
void MCSectionXCore::PrintTargetSpecificSectionFlags(const MCAsmInfo &TAI,
raw_ostream &OS) const {
if (getFlags() & MCSectionXCore::SHF_CP_SECTION)
OS << 'c';

View File

@@ -44,7 +44,7 @@ public:
/// PrintTargetSpecificSectionFlags - This handles the XCore-specific cp/dp
/// section flags.
virtual void PrintTargetSpecificSectionFlags(const TargetAsmInfo &TAI,
virtual void PrintTargetSpecificSectionFlags(const MCAsmInfo &TAI,
raw_ostream &OS) const;
};

View File

@@ -1,4 +1,4 @@
//===-- XCoreTargetAsmInfo.cpp - XCore asm properties ---------------------===//
//===-- XCoreMCAsmInfo.cpp - XCore asm properties -------------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -7,10 +7,10 @@
//
//===----------------------------------------------------------------------===//
#include "XCoreTargetAsmInfo.h"
#include "XCoreMCAsmInfo.h"
using namespace llvm;
XCoreTargetAsmInfo::XCoreTargetAsmInfo(const Target &T, const StringRef &TT) {
XCoreMCAsmInfo::XCoreMCAsmInfo(const Target &T, const StringRef &TT) {
SupportsDebugInformation = true;
Data16bitsDirective = "\t.short\t";
Data32bitsDirective = "\t.long\t";

View File

@@ -1,4 +1,4 @@
//=====-- XCoreTargetAsmInfo.h - XCore asm properties ---------*- C++ -*--====//
//=====-- XCoreMCAsmInfo.h - XCore asm properties -------------*- C++ -*--====//
//
// The LLVM Compiler Infrastructure
//
@@ -7,21 +7,21 @@
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of the XCoreTargetAsmInfo class.
// This file contains the declaration of the XCoreMCAsmInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef XCORETARGETASMINFO_H
#define XCORETARGETASMINFO_H
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/MC/MCAsmInfo.h"
namespace llvm {
class Target;
class StringRef;
class XCoreTargetAsmInfo : public TargetAsmInfo {
class XCoreMCAsmInfo : public MCAsmInfo {
public:
explicit XCoreTargetAsmInfo(const Target &T, const StringRef &TT);
explicit XCoreMCAsmInfo(const Target &T, const StringRef &TT);
};
} // namespace llvm

View File

@@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//
#include "XCoreTargetAsmInfo.h"
#include "XCoreMCAsmInfo.h"
#include "XCoreTargetMachine.h"
#include "XCore.h"
#include "llvm/Module.h"
@@ -40,5 +40,5 @@ bool XCoreTargetMachine::addInstSelector(PassManagerBase &PM,
// Force static initialization.
extern "C" void LLVMInitializeXCoreTarget() {
RegisterTargetMachine<XCoreTargetMachine> X(TheXCoreTarget);
RegisterAsmInfo<XCoreTargetAsmInfo> Y(TheXCoreTarget);
RegisterAsmInfo<XCoreMCAsmInfo> Y(TheXCoreTarget);
}