diff options
-rw-r--r-- | include/llvm/MC/MCContext.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 60d5c0fae1..575bc3b297 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<MCDwarfFile *> &getMCDwarfFiles() { |