OLD | NEW |
1 // Copyright (c) 2010 Google Inc. All Rights Reserved. | 1 // Copyright (c) 2010 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
5 // met: | 5 // met: |
6 // | 6 // |
7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 // Remove inappropriate upper bits. | 237 // Remove inappropriate upper bits. |
238 if (AddressSize() == 4) | 238 if (AddressSize() == 4) |
239 pointer = pointer & 0xffffffff; | 239 pointer = pointer & 0xffffffff; |
240 else | 240 else |
241 assert(AddressSize() == sizeof(uint64)); | 241 assert(AddressSize() == sizeof(uint64)); |
242 | 242 |
243 return pointer; | 243 return pointer; |
244 } | 244 } |
245 | 245 |
| 246 Endianness ByteReader::GetEndianness() const { |
| 247 return endian_; |
| 248 } |
| 249 |
246 } // namespace dwarf2reader | 250 } // namespace dwarf2reader |
OLD | NEW |