aboutsummaryrefslogtreecommitdiff
path: root/absl/strings/internal/char_map.h
diff options
context:
space:
mode:
authorSamuel Benzaquen <sbenza@google.com>2022-12-01 10:08:04 -0800
committerCopybara-Service <copybara-worker@google.com>2022-12-01 10:09:01 -0800
commit1063d2b829bbf1b5cf03f5f8e1e9fe4c71c9f966 (patch)
treeb3b7c59af09d843a93a41fd0614d89df4f1cdff2 /absl/strings/internal/char_map.h
parenta23d720c30e2fff8dde9605bcabe39ce5b4069fc (diff)
downloadabseil-1063d2b829bbf1b5cf03f5f8e1e9fe4c71c9f966.tar.gz
abseil-1063d2b829bbf1b5cf03f5f8e1e9fe4c71c9f966.tar.bz2
abseil-1063d2b829bbf1b5cf03f5f8e1e9fe4c71c9f966.zip
Move the vtable into a function to delay instantiation until the function is
called. When the variable is a global the compiler is allowed to instantiate it more aggresively and it might happen before the types involved are complete. When it is inside a function the compiler can't instantiate it until after the functions are called. Remove an unused member from the vtable. Replace transfer_slot_fn with a generic function when relocation is available to reduce duplication. PiperOrigin-RevId: 492227302 Change-Id: I07499f63b91c59c0ae42402683387c7b84a6f0ee
Diffstat (limited to 'absl/strings/internal/char_map.h')
0 files changed, 0 insertions, 0 deletions