Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. //=== ScopLocation.h -- Debug location helper for ScopDetection -*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // Helper function for extracting region debug information.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. //
  13. #ifndef POLLY_SCOP_LOCATION_H
  14. #define POLLY_SCOP_LOCATION_H
  15.  
  16. #include <string>
  17.  
  18. namespace llvm {
  19. class Region;
  20. } // namespace llvm
  21.  
  22. namespace polly {
  23.  
  24. /// Get the location of a region from the debug info.
  25. ///
  26. /// @param R The region to get debug info for.
  27. /// @param LineBegin The first line in the region.
  28. /// @param LineEnd The last line in the region.
  29. /// @param FileName The filename where the region was defined.
  30. void getDebugLocation(const llvm::Region *R, unsigned &LineBegin,
  31.                       unsigned &LineEnd, std::string &FileName);
  32. } // namespace polly
  33.  
  34. #endif // POLLY_SCOP_LOCATION_H
  35.