mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -207,8 +207,7 @@ public:
|
|||||||
/// emitString - This callback is invoked when a String needs to be
|
/// emitString - This callback is invoked when a String needs to be
|
||||||
/// written to the output stream.
|
/// written to the output stream.
|
||||||
void emitString(const std::string &String) {
|
void emitString(const std::string &String) {
|
||||||
for (unsigned i = 0, N = static_cast<unsigned>(String.size());
|
for (size_t i = 0, N = String.size(); i < N; ++i) {
|
||||||
i < N; ++i) {
|
|
||||||
uint8_t C = String[i];
|
uint8_t C = String[i];
|
||||||
emitByte(C);
|
emitByte(C);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user