vtv_rts.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright (C) 2012-2013
  2. // Free Software Foundation
  3. //
  4. // This file is part of GCC.
  5. //
  6. // GCC is free software; you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation; either version 3, or (at your option)
  9. // any later version.
  10. // GCC is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. // Under Section 7 of GPL version 3, you are granted additional
  15. // permissions described in the GCC Runtime Library Exception, version
  16. // 3.1, as published by the Free Software Foundation.
  17. // You should have received a copy of the GNU General Public License and
  18. // a copy of the GCC Runtime Library Exception along with this program;
  19. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  20. // <http://www.gnu.org/licenses/>.
  21. #ifndef _VTV_RTS_H
  22. #define _VTV_RTS_H 1
  23. #include <cstdlib>
  24. // These prototypes needs to be kept in sync with the compiler-generated declarations in vtable-class-hierarchy.c
  25. extern void
  26. __VLTRegisterSet(void**, const void*, std::size_t, std::size_t, void**);
  27. extern void
  28. __VLTRegisterSetDebug(void**, const void*, std::size_t, std::size_t, void**);
  29. extern void
  30. __VLTRegisterPair(void**, const void*, size_t, const void*);
  31. extern void
  32. __VLTRegisterPairDebug(void**, const void*, size_t, const void*,
  33. const char*, const char*);
  34. extern const void*
  35. __VLTVerifyVtablePointer(void**, const void*);
  36. extern const void*
  37. __VLTVerifyVtablePointerDebug(void**, const void*, const char*, const char*);
  38. #endif /* _VTV_RTS_H */