History log of /llvm-project/llvm/lib/Support/Path.cpp (Results 151 – 175 of 208)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1
# 15217200 16-May-2014 Yaron Keren <yaron.keren@gmail.com>

Fix hardcoded slash to native path seperator which was exposed from llvm::sys::path.

http://reviews.llvm.org/D3687

llvm-svn: 208980


Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1
# c10719f5 07-Apr-2014 Craig Topper <craig.topper@gmail.com>

[C++11] Make use of 'nullptr' in the Support library.

llvm-svn: 205697


# 2006306f 20-Mar-2014 Rafael Espindola <rafael.espindola@gmail.com>

Remove dead and incorrect code.

is_symlink was always false since it was using stat instead of lstat.

llvm-svn: 204361


# 9b7c0af2 13-Mar-2014 Saleem Abdulrasool <compnerd@compnerd.org>

Support: add support to identify WinCOFF/ARM objects

Add the Windows COFF ARM object file magic. This enables the LLVM tools to
interact with COFF object files for Windows on ARM.

llvm-svn: 203761


# 8d116396 05-Mar-2014 Ben Langmuir <blangmuir@apple.com>

Fix an inconsistency in treatment of trailing / in path::const_iterator

When using a //net/ path, we were transforming the trailing / into a '.'
when the path was just the root path and we were iter

Fix an inconsistency in treatment of trailing / in path::const_iterator

When using a //net/ path, we were transforming the trailing / into a '.'
when the path was just the root path and we were iterating backwards.
Forwards iteration and other kinds of root path (C:\, /) were already
correct.

llvm-svn: 202999

show more ...


# 90c7f1cc 24-Feb-2014 Rafael Espindola <rafael.espindola@gmail.com>

Replace the F_Binary flag with a F_Text one.

After this I will set the default back to F_None. The advantage is that
before this patch forgetting to set F_Binary would corrupt a file on windows.
For

Replace the F_Binary flag with a F_Text one.

After this I will set the default back to F_None. The advantage is that
before this patch forgetting to set F_Binary would corrupt a file on windows.
Forgetting to set F_Text produces one that cannot be read in notepad, which
is a better failure mode :-)

llvm-svn: 202052

show more ...


# 7a0b640d 24-Feb-2014 Rafael Espindola <rafael.espindola@gmail.com>

Share a createUniqueEntity implementation between unix and windows.

The only extra bit of functionality that had to be exposed for this be be
implemented in Path.cpp is opening a file in rw mode.

l

Share a createUniqueEntity implementation between unix and windows.

The only extra bit of functionality that had to be exposed for this be be
implemented in Path.cpp is opening a file in rw mode.

llvm-svn: 202005

show more ...


# 5c20ac01 23-Feb-2014 Rafael Espindola <rafael.espindola@gmail.com>

Simplify remove, create_directory and create_directories.

Before this patch they would take an boolean argument to say if the path
already existed. This was redundant with the returned error_code wh

Simplify remove, create_directory and create_directories.

Before this patch they would take an boolean argument to say if the path
already existed. This was redundant with the returned error_code which is able
to represent that. This allowed for callers to incorrectly check only the
existed flag instead of first checking the error code.

Instead, pass in a boolean flag to say if the previous (non-)existence should be
an error or not.

Callers of the of the old simple versions are not affected. They still ignore
the previous (non-)existence as they did before.

llvm-svn: 201979

show more ...


# b6f72b24 13-Feb-2014 Rafael Espindola <rafael.espindola@gmail.com>

Use mkdir instead of stat+mkdir.

This is an optimistic version of create_diretories: it tries to create the
directory first and looks at the parent only if that fails.

Running strace on "mkdir -p"

Use mkdir instead of stat+mkdir.

This is an optimistic version of create_diretories: it tries to create the
directory first and looks at the parent only if that fails.

Running strace on "mkdir -p" shows that it is pessimistic, calling mkdir on
every element of the path. We could implement that if needed.

In any case, with both strategies there is no reason to call stat, just check
the return of mkdir.

llvm-svn: 201347

show more ...


# 6860c819 12-Feb-2014 David Fang <fang@csl.cornell.edu>

_CS_DARWIN_USER macros available on darwin>=9. Thanks, Dave Odell!

llvm-svn: 201255


# 07e7618e 11-Feb-2014 Aaron Ballman <aaron@aaronballman.com>

Using the helper API for random number generation.

llvm-svn: 201125


# cb402911 24-Jan-2014 Alp Toker <alp@nuanti.com>

Fix known typos

Sweep the codebase for common typos. Includes some changes to visible function
names that were misspelt.

llvm-svn: 200018


# 78dcc03c 10-Jan-2014 Rafael Espindola <rafael.espindola@gmail.com>

Remove remove_all. A compiler has no need for recursively deleting a directory.

llvm-svn: 198955


Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1
# e448f9e4 15-Nov-2013 Rui Ueyama <ruiu@google.com>

Path: Recognize COFF import library file magic.

Summary: Make identify_magic to recognize COFF import file.

Reviewers: Bigcheese

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandl

Path: Recognize COFF import library file magic.

Summary: Make identify_magic to recognize COFF import file.

Reviewers: Bigcheese

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2165

llvm-svn: 194852

show more ...


# 829c4392 14-Nov-2013 Rui Ueyama <ruiu@google.com>

Recognize 0x0000 as a COFF file magic.

Summary:
Some machine-type-neutral object files containing only undefined symbols
actually do exist in the Windows standard library. Need to recognize them
as

Recognize 0x0000 as a COFF file magic.

Summary:
Some machine-type-neutral object files containing only undefined symbols
actually do exist in the Windows standard library. Need to recognize them
as COFF files.

Reviewers: Bigcheese

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2164

llvm-svn: 194734

show more ...


# 50a86e12 16-Oct-2013 Rui Ueyama <ruiu@google.com>

Fix a bug in Windows resource file detection.

The magic bytes should not include the trailing NUL byte.

llvm-svn: 192769


# fc149a69 15-Oct-2013 Rui Ueyama <ruiu@google.com>

Path: Recognize Windows compiled resource file.

Some background: One can pass compiled resource files (.res files) directly
to the linker on Windows. If a resource file is given, the linker will run

Path: Recognize Windows compiled resource file.

Some background: One can pass compiled resource files (.res files) directly
to the linker on Windows. If a resource file is given, the linker will run
"cvtres" command in background to convert the resource file to a COFF file
to link it.

What I'm trying to do with this patch is to make the linker to recognize
the resource file by file magic, so that it can run cvtres command.

Differential Revision: http://llvm-reviews.chandlerc.com/D1943

llvm-svn: 192742

show more ...


# bd4ac9bc 11-Sep-2013 Benjamin Kramer <benny.kra@googlemail.com>

Path: Add an in-place version of path::native.

This reflects the common use case of nativizing a prepared path. The existing
version invokes undefined behavior if input = output, add an assert to ca

Path: Add an in-place version of path::native.

This reflects the common use case of nativizing a prepared path. The existing
version invokes undefined behavior if input = output, add an assert to catch
that case.

llvm-svn: 190510

show more ...


# 73537eac 12-Aug-2013 Tareq A. Siraj <tareq.a.siraj@intel.com>

Fixes a bug when iterating on paths

This fixes the incorrect implementation of iterating on file/directory
paths.

Differential Review: http://llvm-reviews.chandlerc.com/D1277

llvm-svn: 188183


# 7f822a93 29-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Include st_dev to make the result of getUniqueID actually unique.

This will let us use getUniqueID instead of st_dev directly on clang.

llvm-svn: 187378


# d3c89041 25-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Don't end a file name with a dot. It looks odd.

llvm-svn: 187124


# 67080cec 19-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Split openFileForWrite into windows and unix versions.

It is similar to 186511, but for creating files for writing.

llvm-svn: 186679


# a0d9b6b6 17-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Split openFileForRead into Windows and Unix versions.

This has some advantages:

* Lets us use native, utf16 windows functions.
* Easy to produce good errors on windows about trying to use a
directo

Split openFileForRead into Windows and Unix versions.

This has some advantages:

* Lets us use native, utf16 windows functions.
* Easy to produce good errors on windows about trying to use a
directory when we want a file.
* Simplifies the unix version a bit.

llvm-svn: 186511

show more ...


# 6d35481c 16-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add a wrapper for open.

This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).

llvm-svn: 186447


Revision tags: llvmorg-3.3.1-rc1
# d22debdc 05-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Remove unique_file now that it is unused.

llvm-svn: 185728


123456789