llvm.org GIT mirror llvm / 333ad3f
Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121382 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 9 years ago
3 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
7171 static MemoryBuffer *getOpenFile(int FD, const char *Filename,
7272 error_code &ec,
7373 int64_t FileSize = -1);
74
74
7575 /// getMemBuffer - Open the specified memory range as a MemoryBuffer. Note
7676 /// that InputData must be null terminated.
7777 static MemoryBuffer *getMemBuffer(StringRef InputData,
108108 SmallString<200> StrTmp(F1P, EndOfNumber(F1NumEnd)+1);
109109 // Strange exponential notation!
110110 StrTmp[static_cast(F1NumEnd-F1P)] = 'e';
111
111
112112 V1 = strtod(&StrTmp[0], const_cast(&F1NumEnd));
113113 F1NumEnd = F1P + (F1NumEnd-&StrTmp[0]);
114114 }
115
115
116116 if (*F2NumEnd == 'D' || *F2NumEnd == 'd') {
117117 // Copy string into tmp buffer to replace the 'D' with an 'e'.
118118 SmallString<200> StrTmp(F2P, EndOfNumber(F2NumEnd)+1);
119119 // Strange exponential notation!
120120 StrTmp[static_cast(F2NumEnd-F2P)] = 'e';
121
121
122122 V2 = strtod(&StrTmp[0], const_cast(&F2NumEnd));
123123 F2NumEnd = F2P + (F2NumEnd-&StrTmp[0]);
124124 }
181181 DiagHandler(GetMessage(Loc, Msg, Type, ShowLine), DiagContext);
182182 return;
183183 }
184
184
185185 raw_ostream &OS = errs();
186186
187187 int CurBuf = FindBufferContainingLoc(Loc);