rel32_finder.cc 640 B

12345678910111213141516171819202122
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "courgette/rel32_finder.h"
  5. namespace courgette {
  6. Rel32Finder::Rel32Finder(RVA relocs_start_rva, RVA relocs_end_rva)
  7. : relocs_start_rva_(relocs_start_rva), relocs_end_rva_(relocs_end_rva) {}
  8. void Rel32Finder::SwapRel32Locations(std::vector<RVA>* dest) {
  9. dest->swap(rel32_locations_);
  10. }
  11. #if COURGETTE_HISTOGRAM_TARGETS
  12. void Rel32FinderX86::SwapRel32TargetRVAs(std::map<RVA, int>* dest) {
  13. dest->swap(rel32_target_rvas_);
  14. }
  15. #endif
  16. } // namespace courgette