[llvm] r200591 - Remove a redundant call to hasRawTextSupport.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jan 31 15:14:01 PST 2014
Author: rafael
Date: Fri Jan 31 17:14:01 2014
New Revision: 200591
URL: http://llvm.org/viewvc/llvm-project?rev=200591&view=rev
Log:
Remove a redundant call to hasRawTextSupport.
The code path it was guarding was already using emitRawComment.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=200591&r1=200590&r2=200591&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Fri Jan 31 17:14:01 2014
@@ -2170,7 +2170,7 @@ void AsmPrinter::EmitBasicBlockStart(con
// Print the main label for the block.
if (MBB->pred_empty() || isBlockOnlyReachableByFallthrough(MBB)) {
- if (isVerbose() && OutStreamer.hasRawTextSupport()) {
+ if (isVerbose()) {
// NOTE: Want this comment at start of line, don't emit with AddComment.
OutStreamer.emitRawComment(" BB#" + Twine(MBB->getNumber()) + ":", false);
}
More information about the llvm-commits
mailing list