<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Support/VirtualFileSystem.cpp, branch users/ojhunt/ptrauth-additions</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[llvm][support] Move `make_absolute` from `sys::fs` to `sys::path` (#161459)</title>
<updated>2025-10-01T21:35:17+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2025-10-01T21:35:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f122484b998d8dbfdaf2e6b9c222438c71e90d86'/>
<id>f122484b998d8dbfdaf2e6b9c222438c71e90d86</id>
<content type='text'>
The `llvm::sys::fs::make_absolute(const Twine &amp;, SmallVectorImpl&lt;char&gt;
&amp;)` functions doesn't perform any FS access - it only modifies the
second parameter via path/string operations. This function should live
in the `llvm::sys::path` namespace for consistency and for making it
easier to spot function calls that perform IO.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `llvm::sys::fs::make_absolute(const Twine &amp;, SmallVectorImpl&lt;char&gt;
&amp;)` functions doesn't perform any FS access - it only modifies the
second parameter via path/string operations. This function should live
in the `llvm::sys::path` namespace for consistency and for making it
easier to spot function calls that perform IO.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Use the VFS to make path absolute (#161271)</title>
<updated>2025-09-30T17:36:21+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2025-09-30T17:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6399d4792d127520ed7281229755d18ff54da297'/>
<id>6399d4792d127520ed7281229755d18ff54da297</id>
<content type='text'>
For the redirecting VFS, the `'overlay-relative'` option controls
whether external paths should be appended to the overlay directory. This
didn't always work as expected: when the overlay file path itself was
relative, its absolute path was decided by the real FS, not the
underlying VFS, and the resulting external path didn't exist in the
underlying VFS. This PR fixes this issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the redirecting VFS, the `'overlay-relative'` option controls
whether external paths should be appended to the overlay directory. This
didn't always work as expected: when the overlay file path itself was
relative, its absolute path was decided by the real FS, not the
underlying VFS, and the resulting external path didn't exist in the
underlying VFS. This PR fixes this issue.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Use the underlying VFS when constructing `RedirectingFileSystem` (#160942)</title>
<updated>2025-09-29T17:01:10+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2025-09-29T17:01:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=0fc972d242f732766b2dc0590d9f241f47427578'/>
<id>0fc972d242f732766b2dc0590d9f241f47427578</id>
<content type='text'>
When the root node of the `RedirectingFileSystem` is to be resolved to
the current working directory, we previously consulted the real FS
instead of the provided underlying VFS. This PR fixes that issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the root node of the `RedirectingFileSystem` is to be resolved to
the current working directory, we previously consulted the real FS
instead of the provided underlying VFS. This PR fixes that issue.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang] Avoid reparsing VFS overlay files for module dep collector (#158372)</title>
<updated>2025-09-15T16:37:19+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2025-09-15T16:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4957c473bc73a3a0bf1037adec770547c4a0aa02'/>
<id>4957c473bc73a3a0bf1037adec770547c4a0aa02</id>
<content type='text'>
This PR uses the new-ish `llvm::vfs::FileSystem::visit()` interface to
collect VFS overlay entries from an existing `FileSystem` instance
rather than parsing the VFS YAML file anew. This prevents duplicate
diagnostics as observed by `clang/test/VFS/broken-vfs-module-dep.c`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR uses the new-ish `llvm::vfs::FileSystem::visit()` interface to
collect VFS overlay entries from an existing `FileSystem` instance
rather than parsing the VFS YAML file anew. This prevents duplicate
diagnostics as observed by `clang/test/VFS/broken-vfs-module-dep.c`.</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Clean up construction of IntrusiveRefCntPtr from raw pointers for llvm::vfs::FileSystem. (#151407)</title>
<updated>2025-07-31T13:57:13+00:00</updated>
<author>
<name>James Y Knight</name>
<email>jyknight@google.com</email>
</author>
<published>2025-07-31T13:57:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9ddbb478ce11e43ae18aa6d04937a51621021482'/>
<id>9ddbb478ce11e43ae18aa6d04937a51621021482</id>
<content type='text'>
This switches to `makeIntrusiveRefCnt&lt;FileSystem&gt;` where creating a new
object, and to passing/returning by `IntrusiveRefCntPtr&lt;FileSystem&gt;`
instead of `FileSystem*` or `FileSystem&amp;`, when dealing with existing
objects.

Part of cleanup #151026.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This switches to `makeIntrusiveRefCnt&lt;FileSystem&gt;` where creating a new
object, and to passing/returning by `IntrusiveRefCntPtr&lt;FileSystem&gt;`
instead of `FileSystem*` or `FileSystem&amp;`, when dealing with existing
objects.

Part of cleanup #151026.</pre>
</div>
</content>
</entry>
<entry>
<title>[Support] Avoid repeated hash lookups (NFC) (#123503)</title>
<updated>2025-01-19T18:58:49+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-01-19T18:58:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2a4c484739b313431b41e5094cfcd021284bbece'/>
<id>2a4c484739b313431b41e5094cfcd021284bbece</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Support] Remove unused includes (NFC) (#116752)</title>
<updated>2024-11-20T14:51:43+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-11-20T14:51:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d44ea7186befe38eb2b3804b15cd1ee1777458ed'/>
<id>d44ea7186befe38eb2b3804b15cd1ee1777458ed</id>
<content type='text'>
Identified with misc-include-cleaner.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Identified with misc-include-cleaner.</pre>
</div>
</content>
</entry>
<entry>
<title>[SystemZ][z/OS] Add new openFileForReadBinary function, and pass IsText parameter to getBufferForFile (#111723)</title>
<updated>2024-10-21T12:20:22+00:00</updated>
<author>
<name>Abhina Sree</name>
<email>Abhina.Sreeskantharajan@ibm.com</email>
</author>
<published>2024-10-21T12:20:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=46dc91e7d9a1b6dd0144e628519d06954b7b4e53'/>
<id>46dc91e7d9a1b6dd0144e628519d06954b7b4e53</id>
<content type='text'>
This patch adds an IsText parameter to the following getBufferForFile,
getBufferForFileImpl. We introduce a new virtual function
openFileForReadBinary which defaults to openFileForRead except in
RealFileSystem which uses the OF_None flag instead of OF_Text.

The default is set to OF_Text instead of OF_None, this change in value
does not affect any other platforms other than z/OS. Setting this
parameter correctly is required to open files on z/OS in the correct
encoding. The IsText parameter is based on the context of where we open
files, for example, in the ASTReader, HeaderMap requires that files
always be opened in binary even though they might be tagged as text.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds an IsText parameter to the following getBufferForFile,
getBufferForFileImpl. We introduce a new virtual function
openFileForReadBinary which defaults to openFileForRead except in
RealFileSystem which uses the OF_None flag instead of OF_Text.

The default is set to OF_Text instead of OF_None, this change in value
does not affect any other platforms other than z/OS. Setting this
parameter correctly is required to open files on z/OS in the correct
encoding. The IsText parameter is based on the context of where we open
files, for example, in the ASTReader, HeaderMap requires that files
always be opened in binary even though they might be tagged as text.</pre>
</div>
</content>
</entry>
<entry>
<title>[Support] Use a hetrogenous lookup with std::map (NFC) (#113075)</title>
<updated>2024-10-20T17:42:53+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-10-20T17:42:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d1401822e2d2753bed3ac597a42cc0b261de40a4'/>
<id>d1401822e2d2753bed3ac597a42cc0b261de40a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[SystemZ][z/OS] Propagate IsText parameter to open text files as text (#107906)"</title>
<updated>2024-09-20T12:18:16+00:00</updated>
<author>
<name>Abhina Sreeskantharajan</name>
<email>Abhina.Sreeskantharajan@ibm.com</email>
</author>
<published>2024-09-20T12:18:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=efdb3ae23247850d3886e3708400f0d991ed59e1'/>
<id>efdb3ae23247850d3886e3708400f0d991ed59e1</id>
<content type='text'>
This reverts commit edf3b277a5f2ebe144827ed47463c22743cac5f9.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit edf3b277a5f2ebe144827ed47463c22743cac5f9.
</pre>
</div>
</content>
</entry>
</feed>
