diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-02-20 22:51:36 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-02-20 22:51:36 +0000 |
commit | fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7 (patch) | |
tree | 0b78d06b18ccfef4e1aad7bbbf9b7f02fb90eb3c /include/llvm/Support/OutputBuffer.h | |
parent | d5ece81cc7a908c30e6786b70a4a9db1dd129a8a (diff) |
Removed trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/OutputBuffer.h')
-rw-r--r-- | include/llvm/Support/OutputBuffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h index 0fedb15e40..b2077c5514 100644 --- a/include/llvm/Support/OutputBuffer.h +++ b/include/llvm/Support/OutputBuffer.h @@ -18,7 +18,7 @@ #include <vector> namespace llvm { - + class OutputBuffer { /// Output buffer. std::vector<unsigned char> &Output; @@ -37,7 +37,7 @@ namespace llvm { assert(Boundary && (Boundary & (Boundary - 1)) == 0 && "Must align to 2^k boundary"); size_t Size = Output.size(); - + if (Size & (Boundary - 1)) { // Add padding to get alignment to the correct place. size_t Pad = Boundary - (Size & (Boundary - 1)); @@ -111,10 +111,10 @@ namespace llvm { ? static_cast<unsigned>(S.length()) : Length; unsigned len_to_fill = static_cast<unsigned>(S.length()) < Length ? Length - static_cast<unsigned>(S.length()) : 0; - + for (unsigned i = 0; i < len_to_copy; ++i) outbyte(S[i]); - + for (unsigned i = 0; i < len_to_fill; ++i) outbyte(0); } @@ -148,7 +148,7 @@ namespace llvm { return Output[Index]; } }; - + } // end llvm namespace #endif // LLVM_SUPPORT_OUTPUTBUFFER_H |