projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix an overly conservative caching issue that caused memdep to
[oota-llvm.git]
/
lib
/
CodeGen
/
MachOWriter.cpp
diff --git
a/lib/CodeGen/MachOWriter.cpp
b/lib/CodeGen/MachOWriter.cpp
index 1a7734fe7c1977a0a302e68f8ea33ee342c3bcc7..73b15edba37ff71b158e99b4d0804f742f163a71 100644
(file)
--- a/
lib/CodeGen/MachOWriter.cpp
+++ b/
lib/CodeGen/MachOWriter.cpp
@@
-634,7
+634,7
@@
void MachOWriter::InitMem(const Constant *C, uintptr_t Offset,
}
case Instruction::Add:
default:
}
case Instruction::Add:
default:
-
cerr << "ConstantExpr not handled as global var init: " << *CE <<
"\n";
+
errs() << "ConstantExpr not handled as global var init: " << *CE <<
"\n";
llvm_unreachable(0);
}
} else if (PC->getType()->isSingleValueType()) {
llvm_unreachable(0);
}
} else if (PC->getType()->isSingleValueType()) {
@@
-732,7
+732,7
@@
void MachOWriter::InitMem(const Constant *C, uintptr_t Offset,
WorkList.push_back(CPair(CPS->getOperand(i),
PA+SL->getElementOffset(i)));
} else {
WorkList.push_back(CPair(CPS->getOperand(i),
PA+SL->getElementOffset(i)));
} else {
-
cerr
<< "Bad Type: " << *PC->getType() << "\n";
+
errs()
<< "Bad Type: " << *PC->getType() << "\n";
llvm_unreachable("Unknown constant type to initialize memory with!");
}
}
llvm_unreachable("Unknown constant type to initialize memory with!");
}
}