summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-02 01:29:39 +0000
committerChris Lattner <sabre@nondot.org>2010-12-02 01:29:39 +0000
commit68324f756d63845d81cb3ed946d0f08a3678f8b9 (patch)
tree0ac2c2cc5223cd20f8371d335b9174e1ef59559e
parentb7bd14fa08d68da7936b97b03912026ec06cb830 (diff)
downloadbcm5719-llvm-68324f756d63845d81cb3ed946d0f08a3678f8b9.tar.gz
bcm5719-llvm-68324f756d63845d81cb3ed946d0f08a3678f8b9.zip
tidy up
llvm-svn: 120644
-rw-r--r--llvm/include/llvm/MC/MCContext.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/MC/MCContext.h b/llvm/include/llvm/MC/MCContext.h
index 60d5c0fae1f..575bc3b2971 100644
--- a/llvm/include/llvm/MC/MCContext.h
+++ b/llvm/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() {
OpenPOWER on IntegriCloud