diff options
author | Bruno Ricci <riccibrun@gmail.com> | 2020-01-09 17:38:50 +0000 |
---|---|---|
committer | Bruno Ricci <riccibrun@gmail.com> | 2020-01-09 17:46:21 +0000 |
commit | 2fe45e029ddfa65880cfe5c3501db12a81cdcbd2 (patch) | |
tree | d34121cb354c0aafc6b7a188e12f83e17722c880 /llvm/lib/Support/Unix/Memory.inc | |
parent | 356b33516c2e0ef241066dded16d7ecc1f7aa8cc (diff) | |
download | bcm5719-llvm-2fe45e029ddfa65880cfe5c3501db12a81cdcbd2.tar.gz bcm5719-llvm-2fe45e029ddfa65880cfe5c3501db12a81cdcbd2.zip |
[Support][NFC] Make some helper functions "static" in Memory.inc
Diffstat (limited to 'llvm/lib/Support/Unix/Memory.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Memory.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index 05f8e32896f..79b1759359e 100644 --- a/llvm/lib/Support/Unix/Memory.inc +++ b/llvm/lib/Support/Unix/Memory.inc @@ -42,9 +42,7 @@ extern "C" void sys_icache_invalidate(const void *Addr, size_t len); extern "C" void __clear_cache(void *, void*); #endif -namespace { - -int getPosixProtectionFlags(unsigned Flags) { +static int getPosixProtectionFlags(unsigned Flags) { switch (Flags & llvm::sys::Memory::MF_RWE_MASK) { case llvm::sys::Memory::MF_READ: return PROT_READ; @@ -76,8 +74,6 @@ int getPosixProtectionFlags(unsigned Flags) { return PROT_NONE; } -} // anonymous namespace - namespace llvm { namespace sys { |