X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FTargetInstrInfo.cpp;h=094a57edb419adbe773d3b7c814f19760c5d0f5c;hb=6663670359428183427b7601f3eb9916c08e6068;hp=c3e6f4326e0671ca44013a0a25de68202f8e0e0c;hpb=d90183d25dcbc0eabde56319fed4e8d6ace2e6eb;p=oota-llvm.git diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp index c3e6f4326e0..094a57edb41 100644 --- a/lib/Target/TargetInstrInfo.cpp +++ b/lib/Target/TargetInstrInfo.cpp @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Target/TargetInstrInfo.h" -#include "llvm/Target/TargetAsmInfo.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Support/ErrorHandling.h" using namespace llvm; @@ -73,21 +73,21 @@ bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const { /// Variable-length instructions are not handled here; this function /// may be overloaded in the target code to do that. unsigned TargetInstrInfo::getInlineAsmLength(const char *Str, - const TargetAsmInfo &TAI) const { + const MCAsmInfo &MAI) const { // Count the number of instructions in the asm. bool atInsnStart = true; unsigned Length = 0; for (; *Str; ++Str) { - if (*Str == '\n' || *Str == TAI.getSeparatorChar()) + if (*Str == '\n' || *Str == MAI.getSeparatorChar()) atInsnStart = true; if (atInsnStart && !isspace(*Str)) { - Length += TAI.getMaxInstLength(); + Length += MAI.getMaxInstLength(); atInsnStart = false; } - if (atInsnStart && strncmp(Str, TAI.getCommentString(), - strlen(TAI.getCommentString())) == 0) + if (atInsnStart && strncmp(Str, MAI.getCommentString(), + strlen(MAI.getCommentString())) == 0) atInsnStart = false; }