[cfe-dev] Source Code Instrumentaton via Clang/LLVM

Anja Gerbes via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 29 01:38:09 PST 2021


Dear community,

Here is my follow up email to the previous one.

As you can see from the version, that it has been a very long time I
touched those files. (LLVM 3.9 --> LLVM 10/12)

If you can guide me, it would be awesome.
Thank You for helping me to update the file so I run it on the current llvm
version.

Here is my output with llvm-10 by running make:

/data/bulletjournal/projectjournal/phd/generated/apps/uob-hpc/intro-hpc-jacobi/functionCPPviaClang_.cpp:
In function ‘int main(int, char**)’:
/data/bulletjournal/projectjournal/phd/generated/apps/uob-hpc/intro-hpc-jacobi/functionCPPviaClang_.cpp:199:44:
error: cannot convert ‘llvm::ErrorOr<const clang::FileEntry*>’ to ‘const
clang::FileEntry*’ in initialization

  199 |   const FileEntry *FileIn = FileMgr.getFile(argv[1]);
      |                             ~~~~~~~~~~~~~~~^~~~~~~~~
      |                                            |
      |                                            llvm::ErrorOr<const
clang::FileEntry*>

What should I change in my code?

Thank You so much!
Best regards
Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/815dcab2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: functionCPPviaClang_jacobi.cpp
Type: text/x-c-code
Size: 8698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/815dcab2/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jacobi.c
Type: text/x-c-code
Size: 5615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/815dcab2/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 4735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/815dcab2/attachment-0001.obj>


More information about the cfe-dev mailing list