From: Chris Lattner Date: Thu, 2 Dec 2010 01:29:39 +0000 (+0000) Subject: tidy up X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ec99c90ea54806ae59eb8ea7686e201ed7eb0d29;p=oota-llvm.git tidy up git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120644 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 60d5c0fae1f..575bc3b2971 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -177,11 +177,11 @@ namespace llvm { bool isValidDwarfFileNumber(unsigned FileNumber); - bool hasDwarfFiles(void) { - return MCDwarfFiles.size() != 0; + bool hasDwarfFiles() const { + return !MCDwarfFiles.empty(); } - bool hasDwarfLines(void) { - return MCLineSectionOrder.size() != 0; + bool hasDwarfLines() const { + return !MCLineSectionOrder.empty(); } const std::vector &getMCDwarfFiles() {