diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-06-22 18:20:10 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-06-22 18:20:10 +0000 |
commit | cee60be640bb567a18a58f33c5a279f202fa6631 (patch) | |
tree | d23d02fddd90354c6a4270b54ca3aad3ecff1488 /llvm/lib/CodeGen/FaultMaps.cpp | |
parent | 0c1c55345d73185e62ee23a37537ea9a3daac7b2 (diff) | |
download | bcm5719-llvm-cee60be640bb567a18a58f33c5a279f202fa6631.tar.gz bcm5719-llvm-cee60be640bb567a18a58f33c5a279f202fa6631.zip |
Fix MSVC build.
I had some unnecessary `typename`s left in after addressing review.
This compiled successfully with clang++ but MSVC reported an error. Fix
the build error by removing the redundant `typename`s.
llvm-svn: 240307
Diffstat (limited to 'llvm/lib/CodeGen/FaultMaps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/FaultMaps.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/FaultMaps.cpp b/llvm/lib/CodeGen/FaultMaps.cpp index 21da4f13bfb..2acafafdb9f 100644 --- a/llvm/lib/CodeGen/FaultMaps.cpp +++ b/llvm/lib/CodeGen/FaultMaps.cpp @@ -115,7 +115,7 @@ const char *FaultMaps::faultTypeToString(FaultMaps::FaultKind FT) { raw_ostream &llvm:: operator<<(raw_ostream &OS, - const typename FaultMapParser::FunctionFaultInfoAccessor &FFI) { + const FaultMapParser::FunctionFaultInfoAccessor &FFI) { OS << "Fault kind: " << FaultMaps::faultTypeToString((FaultMaps::FaultKind)FFI.getFaultKind()) << ", faulting PC offset: " << FFI.getFaultingPCOffset() @@ -124,8 +124,7 @@ operator<<(raw_ostream &OS, } raw_ostream &llvm:: -operator<<(raw_ostream &OS, - const typename FaultMapParser::FunctionInfoAccessor &FI) { +operator<<(raw_ostream &OS, const FaultMapParser::FunctionInfoAccessor &FI) { OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8) << ", NumFaultingPCs: " << FI.getNumFaultingPCs() << "\n"; for (unsigned i = 0, e = FI.getNumFaultingPCs(); i != e; ++i) @@ -140,7 +139,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const FaultMapParser &FMP) { if (FMP.getNumFunctions() == 0) return OS; - typename FaultMapParser::FunctionInfoAccessor FI; + FaultMapParser::FunctionInfoAccessor FI; for (unsigned i = 0, e = FMP.getNumFunctions(); i != e; ++i) { FI = (i == 0) ? FMP.getFirstFunctionInfo() : FI.getNextFunctionInfo(); |