diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-29 07:58:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-29 07:58:41 +0000 |
commit | 9d74a5a5f1d661b520d2c7b9a66f1575f9fd6e7c (patch) | |
tree | f660d11cd42d19d45a1b7eeedf7c988c282e655b /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | e06fc4f0caf2340098654c10ae3c702901e3f562 (diff) | |
download | bcm5719-llvm-9d74a5a5f1d661b520d2c7b9a66f1575f9fd6e7c.tar.gz bcm5719-llvm-9d74a5a5f1d661b520d2c7b9a66f1575f9fd6e7c.zip |
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves.
llvm-svn: 207511
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index f16547a44e5..fbb34ed50da 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -108,9 +108,9 @@ namespace { explicit CppWriter(formatted_raw_ostream &o) : ModulePass(ID), Out(o), uniqueNum(0), is_inline(false), indent_level(0){} - virtual const char *getPassName() const { return "C++ backend"; } + const char *getPassName() const override { return "C++ backend"; } - bool runOnModule(Module &M); + bool runOnModule(Module &M) override; void printProgram(const std::string& fname, const std::string& modName ); void printModule(const std::string& fname, const std::string& modName ); |