Cleanup whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer 2011-12-13 23:16:15 +00:00
parent 863d2af947
commit faebf11a34
2 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ sys::IdentifyFileType(const char *magic, unsigned length) {
case 0xCF: { case 0xCF: {
uint16_t type = 0; uint16_t type = 0;
if (magic[0] == char(0xFE) && magic[1] == char(0xED) && if (magic[0] == char(0xFE) && magic[1] == char(0xED) &&
magic[2] == char(0xFA) && magic[2] == char(0xFA) &&
(magic[3] == char(0xCE) || magic[3] == char(0xCF))) { (magic[3] == char(0xCE) || magic[3] == char(0xCF))) {
/* Native endian */ /* Native endian */
if (length >= 16) type = magic[14] << 8 | magic[15]; if (length >= 16) type = magic[14] << 8 | magic[15];

View File

@ -492,7 +492,7 @@ bool is_separator(char value) {
void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result) { void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result) {
result.clear(); result.clear();
// Check whether the temporary directory is specified by an environment // Check whether the temporary directory is specified by an environment
// variable. // variable.
const char *EnvironmentVariable; const char *EnvironmentVariable;
@ -505,7 +505,7 @@ void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result) {
result.append(RequestedDir, RequestedDir + strlen(RequestedDir)); result.append(RequestedDir, RequestedDir + strlen(RequestedDir));
return; return;
} }
// Fall back to a system default. // Fall back to a system default.
const char *DefaultResult; const char *DefaultResult;
#ifdef LLVM_ON_WIN32 #ifdef LLVM_ON_WIN32
@ -519,7 +519,7 @@ void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result) {
#endif #endif
result.append(DefaultResult, DefaultResult + strlen(DefaultResult)); result.append(DefaultResult, DefaultResult + strlen(DefaultResult));
} }
bool has_root_name(const Twine &path) { bool has_root_name(const Twine &path) {
SmallString<128> path_storage; SmallString<128> path_storage;
StringRef p = path.toStringRef(path_storage); StringRef p = path.toStringRef(path_storage);