[cfe-commits] r90440 - /cfe/trunk/lib/CodeGen/TargetABIInfo.cpp
Daniel Dunbar
daniel at zuster.org
Thu Dec 3 01:13:50 PST 2009
Author: ddunbar
Date: Thu Dec 3 03:13:49 2009
New Revision: 90440
URL: http://llvm.org/viewvc/llvm-project?rev=90440&view=rev
Log:
Convert ABIArgInfo::dump to raw_ostream.
Modified:
cfe/trunk/lib/CodeGen/TargetABIInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetABIInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetABIInfo.cpp?rev=90440&r1=90439&r2=90440&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetABIInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetABIInfo.cpp Thu Dec 3 03:13:49 2009
@@ -17,37 +17,37 @@
#include "clang/AST/RecordLayout.h"
#include "llvm/Type.h"
#include "llvm/ADT/Triple.h"
-#include <cstdio>
-
+#include "llvm/Support/raw_ostream.h"
using namespace clang;
using namespace CodeGen;
ABIInfo::~ABIInfo() {}
void ABIArgInfo::dump() const {
- fprintf(stderr, "(ABIArgInfo Kind=");
+ llvm::raw_ostream &OS = llvm::errs();
+ OS << "(ABIArgInfo Kind=";
switch (TheKind) {
case Direct:
- fprintf(stderr, "Direct");
+ OS << "Direct";
break;
case Extend:
- fprintf(stderr, "Extend");
+ OS << "Extend";
break;
case Ignore:
- fprintf(stderr, "Ignore");
+ OS << "Ignore";
break;
case Coerce:
- fprintf(stderr, "Coerce Type=");
- getCoerceToType()->print(llvm::errs());
+ OS << "Coerce Type=";
+ getCoerceToType()->print(OS);
break;
case Indirect:
- fprintf(stderr, "Indirect Align=%d", getIndirectAlign());
+ OS << "Indirect Align=" << getIndirectAlign();
break;
case Expand:
- fprintf(stderr, "Expand");
+ OS << "Expand";
break;
}
- fprintf(stderr, ")\n");
+ OS << ")\n";
}
static bool isEmptyRecord(ASTContext &Context, QualType T, bool AllowArrays);
More information about the cfe-commits
mailing list