From 22b291abd855ccf013381a9d6939d918181b0e0e Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 8 May 2012 20:45:04 +0000 Subject: [PATCH] Remove excess semi-colons to quiet warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156416 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/CodeExtractor.h | 2 +- lib/Target/Hexagon/HexagonMCInst.h | 12 ++++++------ lib/Target/NVPTX/NVPTXTargetObjectFile.h | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/llvm/Transforms/Utils/CodeExtractor.h b/include/llvm/Transforms/Utils/CodeExtractor.h index 48f3d48c6f4..1122678035b 100644 --- a/include/llvm/Transforms/Utils/CodeExtractor.h +++ b/include/llvm/Transforms/Utils/CodeExtractor.h @@ -92,7 +92,7 @@ namespace llvm { /// /// Based on the blocks used when constructing the code extractor, /// determine whether it is eligible for extraction. - bool isEligible() const { return !Blocks.empty(); }; + bool isEligible() const { return !Blocks.empty(); } /// \brief Compute the set of input values and output values for the code. /// diff --git a/lib/Target/Hexagon/HexagonMCInst.h b/lib/Target/Hexagon/HexagonMCInst.h index 16ea7cf6ed7..7a16c241ff8 100644 --- a/lib/Target/Hexagon/HexagonMCInst.h +++ b/lib/Target/Hexagon/HexagonMCInst.h @@ -26,15 +26,15 @@ namespace llvm { explicit HexagonMCInst(): MCInst(), startPacket(0), endPacket(0) {} - const MachineInstr* getMI() const { return MachineI; }; + const MachineInstr* getMI() const { return MachineI; } - void setMI(const MachineInstr *MI) { MachineI = MI; }; + void setMI(const MachineInstr *MI) { MachineI = MI; } - bool isStartPacket() const { return (startPacket); }; - bool isEndPacket() const { return (endPacket); }; + bool isStartPacket() const { return (startPacket); } + bool isEndPacket() const { return (endPacket); } - void setStartPacket(bool yes) { startPacket = yes; }; - void setEndPacket(bool yes) { endPacket = yes; }; + void setStartPacket(bool yes) { startPacket = yes; } + void setEndPacket(bool yes) { endPacket = yes; } }; } diff --git a/lib/Target/NVPTX/NVPTXTargetObjectFile.h b/lib/Target/NVPTX/NVPTXTargetObjectFile.h index 54209588a95..b5698a2fc08 100644 --- a/lib/Target/NVPTX/NVPTXTargetObjectFile.h +++ b/lib/Target/NVPTX/NVPTXTargetObjectFile.h @@ -21,7 +21,7 @@ class Module; class NVPTXTargetObjectFile : public TargetLoweringObjectFile { public: - NVPTXTargetObjectFile() {}; + NVPTXTargetObjectFile() {} ~NVPTXTargetObjectFile() { delete TextSection; delete DataSection; @@ -43,7 +43,7 @@ public: delete DwarfARangesSection; delete DwarfRangesSection; delete DwarfMacroInfoSection; - }; + } virtual void Initialize(MCContext &ctx, const TargetMachine &TM) { TextSection = new NVPTXSection(MCSection::SV_ELF, @@ -85,18 +85,18 @@ public: SectionKind::getMetadata()); DwarfMacroInfoSection = new NVPTXSection(MCSection::SV_ELF, SectionKind::getMetadata()); - }; + } virtual const MCSection *getSectionForConstant(SectionKind Kind) const { return ReadOnlySection; - }; + } virtual const MCSection * getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const { return DataSection; - }; + } }; -- 2.34.1