diff options
author | Nick Kledzik <kledzik@apple.com> | 2012-05-18 18:39:06 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2012-05-18 18:39:06 +0000 |
commit | 18e2f6e94cf9dc48bfc6dfa3848971aa88e334da (patch) | |
tree | 0b2e051491692b17da3eed3dc71571ad23b72ea9 | |
parent | 23da8a061fcadd20a2abe3afafdeed2d505acfb8 (diff) | |
download | external_llvm-18e2f6e94cf9dc48bfc6dfa3848971aa88e334da.zip external_llvm-18e2f6e94cf9dc48bfc6dfa3848971aa88e334da.tar.gz external_llvm-18e2f6e94cf9dc48bfc6dfa3848971aa88e334da.tar.bz2 |
fix warnings when compiling with -Wshadow
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157061 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/CommandLine.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/SMLoc.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index c212d2d..40c4300 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -217,9 +217,9 @@ public: void setMiscFlag(enum MiscFlags M) { Misc |= M; } void setPosition(unsigned pos) { Position = pos; } protected: - explicit Option(enum NumOccurrencesFlag Occurrences, + explicit Option(enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden) - : NumOccurrences(0), Occurrences(Occurrences), HiddenFlag(Hidden), + : NumOccurrences(0), Occurrences(OccurrencesFlag), HiddenFlag(Hidden), Formatting(NormalFormatting), Position(0), AdditionalVals(0), NextRegistered(0), ArgStr(""), HelpStr(""), ValueStr("") { diff --git a/include/llvm/Support/SMLoc.h b/include/llvm/Support/SMLoc.h index d48bfcc..7e0811a 100644 --- a/include/llvm/Support/SMLoc.h +++ b/include/llvm/Support/SMLoc.h @@ -48,7 +48,7 @@ public: SMLoc Start, End; SMRange() {} - SMRange(SMLoc Start, SMLoc End) : Start(Start), End(End) { + SMRange(SMLoc St, SMLoc En) : Start(St), End(En) { assert(Start.isValid() == End.isValid() && "Start and end should either both be valid or both be invalid!"); } diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index f108f73..8949a3a 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -176,9 +176,9 @@ public: SMDiagnostic() : SM(0), LineNo(0), ColumnNo(0), Kind(SourceMgr::DK_Error) {} // Diagnostic with no location (e.g. file not found, command line arg error). - SMDiagnostic(const std::string &filename, SourceMgr::DiagKind Kind, + SMDiagnostic(const std::string &filename, SourceMgr::DiagKind Knd, const std::string &Msg) - : SM(0), Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Kind), + : SM(0), Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Knd), Message(Msg) {} // Diagnostic with a location. |