[llvm-commits] [gcc-plugin] r75350 - /gcc-plugin/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Fri Jul 10 21:17:30 PDT 2009
Author: baldrick
Date: Fri Jul 10 23:17:30 2009
New Revision: 75350
URL: http://llvm.org/viewvc/llvm-project?rev=75350&view=rev
Log:
Get rid of %H error/warning location marker in
favour of error_at/warning_at.
Modified:
gcc-plugin/trunk/llvm-convert.cpp
Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=75350&r1=75349&r2=75350&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Fri Jul 10 23:17:30 2009
@@ -3884,10 +3884,10 @@
unsigned long OpNum = strtoul(InStr, &EndPtr, 10);
if (InStr == EndPtr) {
- error("%Hoperand number missing after %%-letter",&EXPR_LOCATION(exp));
+ error_at(EXPR_LOCATION(exp),"operand number missing after %%-letter");
return Result;
} else if (OpNum >= NumOperands) {
- error("%Hoperand number out of range", &EXPR_LOCATION(exp));
+ error_at(EXPR_LOCATION(exp), "operand number out of range");
return Result;
}
Result += "${" + utostr(OpNum) + ":" + EscapedChar + "}";
@@ -4379,9 +4379,9 @@
if (OTy && OTy != OpTy) {
if (!(isa<IntegerType>(OTy) || isa<PointerType>(OTy)) ||
!(isa<IntegerType>(OpTy) || isa<PointerType>(OpTy))) {
- error("%Hunsupported inline asm: input constraint with a matching "
- "output constraint of incompatible type!",
- &EXPR_LOCATION(exp));
+ error_at(EXPR_LOCATION(exp),
+ "unsupported inline asm: input constraint with a matching "
+ "output constraint of incompatible type!");
if (NumChoices>1)
FreeConstTupleStrings(ReplacementStrings, NumInputs+NumOutputs);
return 0;
@@ -4389,9 +4389,9 @@
unsigned OTyBits = TD.getTypeSizeInBits(OTy);
unsigned OpTyBits = TD.getTypeSizeInBits(OpTy);
if (OTyBits == 0 || OpTyBits == 0 || OTyBits < OpTyBits) {
- error("%Hunsupported inline asm: input constraint with a matching "
- "output constraint of incompatible type!",
- &EXPR_LOCATION(exp));
+ error_at(EXPR_LOCATION(exp),
+ "unsupported inline asm: input constraint with a matching "
+ "output constraint of incompatible type!");
return 0;
} else if (OTyBits > OpTyBits) {
Op = CastToAnyType(Op, !TYPE_UNSIGNED(type),
@@ -4457,8 +4457,8 @@
switch (RegCode) {
case -1: // Nothing specified?
case -2: // Invalid.
- error("%Hunknown register name %qs in %<asm%>", &EXPR_LOCATION(exp),
- RegName);
+ error_at(EXPR_LOCATION(exp), "unknown register name %qs in %<asm%>",
+ RegName);
if (NumChoices>1)
FreeConstTupleStrings(ReplacementStrings, NumInputs+NumOutputs);
return 0;
@@ -4496,7 +4496,7 @@
// Make sure we're created a valid inline asm expression.
if (!InlineAsm::Verify(FTy, ConstraintStr)) {
- error("%HInvalid or unsupported inline assembly!", &EXPR_LOCATION(exp));
+ error_at(EXPR_LOCATION(exp), "Invalid or unsupported inline assembly!");
if (NumChoices>1)
FreeConstTupleStrings(ReplacementStrings, NumInputs+NumOutputs);
return 0;
@@ -4743,8 +4743,8 @@
if (EmitFrontendExpandedBuiltinCall(exp, fndecl, DestLoc, Result))
return true;
- error("%Hunsupported target builtin %<%s%> used", &EXPR_LOCATION(exp),
- BuiltinName);
+ error_at(EXPR_LOCATION(exp), "unsupported target builtin %<%s%> used",
+ BuiltinName);
const Type *ResTy = ConvertType(TREE_TYPE(exp));
if (ResTy->isSingleValueType())
Result = UndefValue::get(ResTy);
@@ -5553,9 +5553,9 @@
if (!LenCI)
return false;
if (SizeCI->getValue().ult(LenCI->getValue())) {
- location_t locus = EXPR_LOCATION(exp);
- warning (0, "%Hcall to %D will always overflow destination buffer",
- &locus, get_callee_fndecl(exp));
+ warning_at (EXPR_LOCATION(exp), 0,
+ "call to %D will always overflow destination buffer",
+ get_callee_fndecl(exp));
return false;
}
return true;
More information about the llvm-commits
mailing list